mirror of
https://github.com/soypat/lneto.git
synced 2026-08-18 13:44:02 +00:00
do not crash if no tcp connections are desired
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user