Panic instead of logging
This commit is contained in:
parent
eb5f391fa6
commit
e48562441e
|
@ -10,7 +10,6 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/jedisct1/dlog"
|
|
||||||
"golang.org/x/crypto/ed25519"
|
"golang.org/x/crypto/ed25519"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -203,8 +202,7 @@ func (stamp *ServerStamp) String() string {
|
||||||
} else if stamp.Proto == StampProtoTypeDoH {
|
} else if stamp.Proto == StampProtoTypeDoH {
|
||||||
return stamp.dohString()
|
return stamp.dohString()
|
||||||
}
|
}
|
||||||
dlog.Fatal("Unsupported protocol")
|
panic("Unsupported protocol")
|
||||||
return ""
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (stamp *ServerStamp) dnsCryptString() string {
|
func (stamp *ServerStamp) dnsCryptString() string {
|
||||||
|
|
Loading…
Reference in New Issue