update code

master
bettleChen 1 year ago
parent 60b4414c1f
commit 00042bf9a7

@ -548,7 +548,7 @@ class SimRouter(SimBase):
network = ipaddress.ip_network(network)
if ip in network:
return True
if network == "0.0.0.0/24": # 如果网段为0.0.0.0/24 则为默认路由
if network == "0.0.0.0/24": # 如果网段为 0.0.0.0/24 则为默认路由
return True
def transmit(self, packet: SimPacket):

Loading…
Cancel
Save