ericpaulbishop / gargoyle

Gargoyle Router Management Utility
http://www.gargoyle-router.com
468 stars 221 forks source link

Fix client/server template with DHCP on WAN. #907

Closed n3vu0r closed 3 years ago

n3vu0r commented 3 years ago

When using DHCP on WAN side, uci -q get network.wan.ipaddr is empty and uci -qp /tmp/state get network.wan.ipaddr has to be used instead. But this can have timing problems so I inverted the test logic and went with uci -q get network.lan.ipaddr which I think is permanently set.

Happy new year!