mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 23:00:58 +00:00
This commit is contained in:
parent
27c91c57d5
commit
a17a8cd48b
@ -160,7 +160,7 @@ func (t *quicListener) URI() *url.URL {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (t *quicListener) WANAddresses() []*url.URL {
|
func (t *quicListener) WANAddresses() []*url.URL {
|
||||||
uris := t.LANAddresses()
|
uris := []*url.URL{t.uri}
|
||||||
t.mut.Lock()
|
t.mut.Lock()
|
||||||
if t.address != nil {
|
if t.address != nil {
|
||||||
uris = append(uris, t.address)
|
uris = append(uris, t.address)
|
||||||
|
@ -146,7 +146,7 @@ func (t *tcpListener) URI() *url.URL {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (t *tcpListener) WANAddresses() []*url.URL {
|
func (t *tcpListener) WANAddresses() []*url.URL {
|
||||||
uris := t.LANAddresses()
|
uris := []*url.URL{t.uri}
|
||||||
t.mut.RLock()
|
t.mut.RLock()
|
||||||
if t.mapping != nil {
|
if t.mapping != nil {
|
||||||
addrs := t.mapping.ExternalAddresses()
|
addrs := t.mapping.ExternalAddresses()
|
||||||
|
Loading…
Reference in New Issue
Block a user