Treat 0.0.0.0 as local address in --address flag (#4386)
This commit is contained in:
committed by
Harshavardhana
parent
28c26a9e59
commit
3c5db69ffd
@@ -221,6 +221,7 @@ func TestCheckLocalServerAddr(t *testing.T) {
|
||||
}{
|
||||
{":54321", nil},
|
||||
{"localhost:54321", nil},
|
||||
{"0.0.0.0:9000", nil},
|
||||
{"", fmt.Errorf("missing port in address")},
|
||||
{"localhost", fmt.Errorf("missing port in address localhost")},
|
||||
{"example.org:54321", fmt.Errorf("host in server address should be this server")},
|
||||
|
||||
Reference in New Issue
Block a user