summaryrefslogtreecommitdiff
path: root/plugins/http/config
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/http/config')
-rw-r--r--plugins/http/config/ssl.go2
-rw-r--r--plugins/http/config/ssl_config_test.go2
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",