do not crash if no tcp connections are desired

This commit is contained in:
Patricio Whittingslow
2025-10-22 19:19:32 -03:00
parent 407f4a08f1
commit bb4053647d
6 changed files with 19 additions and 12 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ type StackIP struct {
func (sb *StackIP) Reset(addr netip.Addr, maxNodes int) error {
if maxNodes <= 0 {
return errZeroMaxNodes
return errZeroMaxNodesArg
}
err := sb.SetAddr(addr)
if err != nil {