mirror of
https://github.com/octoleo/syncthing.git
synced 2025-02-02 03:48:26 +00:00
cmd/syncthing: Listening on a 0 port is not valid (fixes #2926)
This commit is contained in:
parent
668eb7c398
commit
393798098c
@ -721,6 +721,9 @@ func syncthingMain(runtimeOptions RuntimeOptions) {
|
||||
if err != nil {
|
||||
l.Fatalln("Bad listen address:", err)
|
||||
}
|
||||
if addr.Port == 0 {
|
||||
l.Fatalf("Listen address %s: invalid port", uri)
|
||||
}
|
||||
|
||||
// Start UPnP
|
||||
var upnpService *upnp.Service
|
||||
|
Loading…
x
Reference in New Issue
Block a user