Skip to content

Commit

Permalink
rc: fully disable IPv6 support if pinhole support is disabled by the …
Browse files Browse the repository at this point in the history
…user
  • Loading branch information
RMerl committed Jul 12, 2024
1 parent e2aa8af commit 20d86d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions release/src/router/rc/services.c
Original file line number Diff line number Diff line change
Expand Up @@ -6650,6 +6650,7 @@ void start_upnp(void)
"serial=%s\n"
"uuid=%s\n"
#ifdef RTCONFIG_IGD2
"ipv6_disable=%s\n"
"lease_file6=/tmp/upnp.leases6\n"
#endif
"lease_file=%s\n",
Expand All @@ -6671,6 +6672,9 @@ void start_upnp(void)
"ASUS Wireless Router",
get_productid(),
nvram_get("serial_no") ? : serial, uuid,
#ifdef RTCONFIG_IGD2
nvram_get_int("upnp_pinhole_enable") ? "no" : "yes",
#endif
"/tmp/upnp.leases");

if (nvram_get_int("upnp_clean")) {
Expand Down

0 comments on commit 20d86d4

Please sign in to comment.