mirror of
https://github.com/soypat/lneto.git
synced 2026-08-21 15:09:05 +00:00
refactor max tcp port config values to uint16 to better represent their valid space
This commit is contained in:
@@ -64,7 +64,7 @@ func run(ctx context.Context, stack *xnet.StackAsync) error {
|
||||
Hostname: "lneto-mwe",
|
||||
RandSeed: time.Now().UnixNano(),
|
||||
// A passive TCP listener to many remote ports takes up one spot, active TCP clients to one remote port take up a spot.
|
||||
MaxTCPConns: 1,
|
||||
MaxActiveTCPPorts: 1,
|
||||
// MaxUDPConns: 1 , // For MDNS support.
|
||||
// AcceptMulticast: true, // For MDNS.
|
||||
MTU: uint16(framelen - ethernet.MaxOverheadSize),
|
||||
|
||||
Reference in New Issue
Block a user