mirror of
https://github.com/kemko/nomad.git
synced 2026-01-05 01:45:44 +03:00
Fix detection of missing port
This commit is contained in:
@@ -809,7 +809,7 @@ func normalizeAdvertise(addr string, bind string, defport int, dev bool) (string
|
||||
func isMissingPort(err error) bool {
|
||||
// matches error const in net/ipsock.go
|
||||
const missingPort = "missing port in address"
|
||||
return err != nil && strings.HasPrefix(err.Error(), missingPort)
|
||||
return err != nil && strings.Contains(err.Error(), missingPort)
|
||||
}
|
||||
|
||||
// Merge is used to merge two server configs together
|
||||
|
||||
Reference in New Issue
Block a user