[TASK] startup also with ipv4
This commit is contained in:
parent
f77bf008e9
commit
2560bafade
|
@ -1 +1 @@
|
||||||
webserver_bind = "[::1]:8080"
|
webserver_bind = ":8080"
|
||||||
|
|
|
@ -12,7 +12,7 @@ func TestReadConfig(t *testing.T) {
|
||||||
config := ReadConfigFile("../config_example.conf")
|
config := ReadConfigFile("../config_example.conf")
|
||||||
assert.NotNil(config)
|
assert.NotNil(config)
|
||||||
|
|
||||||
assert.Equal("[::1]:8080", config.WebserverBind)
|
assert.Equal(":8080", config.WebserverBind)
|
||||||
|
|
||||||
assert.Panics(func() {
|
assert.Panics(func() {
|
||||||
ReadConfigFile("../config_example.co")
|
ReadConfigFile("../config_example.co")
|
||||||
|
|
Reference in New Issue