add support for a host in ensurePortFormat (#1342)

* add support for an host in ensurePortFormat
using a host enables the ability to bind to a specific interface

* add support for an host in ensurePortFormat
using a host enables the ability to bind to a specific interface
This commit is contained in:
jhawk28
2019-08-14 14:46:32 -04:00
committed by Marwan Sulaiman
parent 3a3d474e1b
commit ba9dc5470e
2 changed files with 9 additions and 5 deletions
+6
View File
@@ -143,6 +143,12 @@ func TestEnsurePortFormat(t *testing.T) {
if given != expected {
t.Fatalf("expected ensurePortFormat to not add a colon when it's present but got %v", given)
}
port = "127.0.0.1:3000"
expected = "127.0.0.1:3000"
given = ensurePortFormat(port)
if given != expected {
t.Fatalf("expected ensurePortFormat to not add a colon when it's present but got %v", given)
}
}
func TestStorageEnvOverrides(t *testing.T) {