diff options
author | Valery Piashchynski <[email protected]> | 2021-08-11 11:45:24 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-08-11 11:45:24 +0300 |
commit | 3e2e9fbd9650c44d57a41a9dc702fe93aad2b77f (patch) | |
tree | 38f25c3c0679e8510b896d001d1b7dccf21c4bd8 /plugins/http | |
parent | d449d9d5aec1eec6d494064299feb1551f88ffe2 (diff) |
Replace all 'localhost' with '127.0.0.1'. Fix default configuration and
other small bugs.
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/http')
-rw-r--r-- | plugins/http/config/ssl.go | 2 | ||||
-rw-r--r-- | plugins/http/config/ssl_config_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/http/config/ssl.go b/plugins/http/config/ssl.go index d44703f9..0e3c0caf 100644 --- a/plugins/http/config/ssl.go +++ b/plugins/http/config/ssl.go @@ -36,7 +36,7 @@ func (s *SSL) Valid() error { parts := strings.Split(s.Address, ":") switch len(parts) { // :443 form - // localhost:443 form + // 127.0.0.1:443 form // use 0.0.0.0 as host and 443 as port case 2: if parts[0] == "" { diff --git a/plugins/http/config/ssl_config_test.go b/plugins/http/config/ssl_config_test.go index 1f5fef0a..8f6cf40e 100644 --- a/plugins/http/config/ssl_config_test.go +++ b/plugins/http/config/ssl_config_test.go @@ -101,7 +101,7 @@ func TestSSL_Valid6(t *testing.T) { func TestSSL_Valid7(t *testing.T) { conf := &SSL{ - Address: "localhost:555:1", + Address: "127.0.0.1:555:1", Redirect: false, Key: "../../../tests/plugins/http/fixtures/server.key", Cert: "../../../tests/plugins/http/fixtures/server.crt", |