Grey Hack

Grey Hack

gloowa 4 月 2 日 上午 8:31
Router.device_ports(addr) exits sometimes
Hi,

Method Router.device_ports(addr) exits (kills the script) with "device_ports: <IP> is unreachable" message when certain IP's are passed to it.

When I am connected to a wifi (router is 192.168.0.1) and try to invoke router.device_ports("192.168.0.15") i get this behaviour, but intrestingly not on any IP below 15 in the last octet (so for 192.168.0.1 to 192.168.0.14 i get ports for existing hosts and nulls for non-existing)

The documentation suggests the method should return null in this situation.
最后由 gloowa 编辑于; 4 月 2 日 上午 8:33