Fixed copy-pasta. log.Fatalln() replaced with return err.
This commit is contained in:
parent
3b15052330
commit
17781c5445
@ -30,7 +30,7 @@ func (s *HttpServer) Start(address string) error {
|
|||||||
} else {
|
} else {
|
||||||
ap, err := netip.ParseAddrPort(address)
|
ap, err := netip.ParseAddrPort(address)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalln(err)
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if ap.Addr().Is4() {
|
if ap.Addr().Is4() {
|
||||||
|
Loading…
Reference in New Issue
Block a user