Skip to content

Commit fa9c118

Browse files
committed
Improve error message
1 parent 92bc4a5 commit fa9c118

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

srtla.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ func resolveSRTAddr(host string, port uint16) (*net.UDPAddr, error) {
545545
}
546546
// Fallback to first IP even if handshake failed
547547
if len(addrs) == 0 {
548-
return nil, fmt.Errorf("no IPs for host %s", host)
548+
return nil, fmt.Errorf("No IP addresses found for host %s", host)
549549
}
550550
log.Printf("Warning: Failed to confirm SRT server is reachable. Proceeding with first address.")
551551
return &net.UDPAddr{IP: addrs[0], Port: int(port)}, nil

0 commit comments

Comments
 (0)