1
0

Fixed copy-pasta. log.Fatalln() replaced with return err.

This commit is contained in:
Alexander Andreev 2023-08-06 01:42:56 +04:00
parent 3b15052330
commit 17781c5445
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -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() {