mirror of
https://github.com/vanilla-wiiu/vanilla.git
synced 2026-10-28 09:43:51 +00:00
dhcp: reset timeout to zero on startup
Fixes issue where DHCP gets indefinitely stuck when connecting more than once in the same session
This commit is contained in:
1 parent
1f9741e780
commit
3e5b1208af
1 file changed
+2
@@ -304,6 +304,8 @@ int udhcpc_main()
|
||||
run_script(NULL, "deconfig");
|
||||
change_mode(LISTEN_RAW);
|
||||
|
||||
timeout = 0;
|
||||
|
||||
for (;;) {
|
||||
|
||||
tv.tv_sec = timeout - uptime();
|
||||
|
||||
Reference in new issue
Block a user