Skip to content

Commit

Permalink
lib/config: Add missing quic address in case of non-default port (fixes
Browse files Browse the repository at this point in the history
syncthing#6679) (syncthing#6703)

* Add quic listener on instance of port blockage

* Update lib/config/config.go

Co-authored-by: Audrius Butkevicius <[email protected]>
  • Loading branch information
Jonathan and AudriusButkevicius authored Jun 2, 2020
1 parent c80e0bf commit 9ef1732
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,9 @@ func NewWithFreePorts(myID protocol.DeviceID) (Configuration, error) {
cfg.Options.RawListenAddresses = []string{"default"}
} else {
cfg.Options.RawListenAddresses = []string{
fmt.Sprintf("tcp://%s", net.JoinHostPort("0.0.0.0", strconv.Itoa(port))),
util.Address("tcp", net.JoinHostPort("0.0.0.0", strconv.Itoa(port))),
"dynamic+https://relays.syncthing.net/endpoint",
util.Address("quic", net.JoinHostPort("0.0.0.0", strconv.Itoa(port))),
}
}

Expand Down

0 comments on commit 9ef1732

Please sign in to comment.