This commit is contained in:
Frank Denis 2018-01-22 10:02:06 +01:00
parent 8324b29b42
commit 973b53afdc
1 changed files with 2 additions and 3 deletions

View File

@ -264,11 +264,10 @@ func ConfigLoad(proxy *Proxy, svcFlag *string, config_file string) error {
} }
var stamp ServerStamp var stamp ServerStamp
var err error var err error
if len(serverConfig.Stamp) > 0 { if len(serverConfig.Stamp) == 0 {
stamp, err = NewServerStampFromString(serverConfig.Stamp)
} else {
dlog.Fatalf("Missing stamp for the static [%s] definition", serverName) dlog.Fatalf("Missing stamp for the static [%s] definition", serverName)
} }
stamp, err = NewServerStampFromString(serverConfig.Stamp)
if err != nil { if err != nil {
return err return err
} }