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 err error
if len(serverConfig.Stamp) > 0 {
stamp, err = NewServerStampFromString(serverConfig.Stamp)
} else {
if len(serverConfig.Stamp) == 0 {
dlog.Fatalf("Missing stamp for the static [%s] definition", serverName)
}
stamp, err = NewServerStampFromString(serverConfig.Stamp)
if err != nil {
return err
}