Changeset 12387
- Timestamp:
- 06/26/2009 05:22:23 PM (4 months ago)
- Files:
-
- src/router/services/networking/firewall.c (modified) (1 diff)
- src/router/services/networking/udhcpc.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
src/router/services/networking/firewall.c
r12386 r12387 774 774 if (strlen(wanface) > 0) 775 775 save2file("-A POSTROUTING -o %s -j SNAT --to-source %s\n",wanface,nvram_safe_get("wan_ipaddr")); 776 if (nvram_match("wan_proto", "pptp") && nvram_match("pptp_use_dhcp", "1"))777 {778 save2file("-A POSTROUTING -o %s -j SNAT --to-source %s\n",nvram_safe_get("pptp_ifname"),nvram_safe_get("pptp_wan_ipaddr"));779 }else780 776 if (nvram_match("wan_proto", "pptp")) { 781 777 struct in_addr ifaddr; src/router/services/networking/udhcpc.c
r12386 r12387 234 234 if (nvram_match("wan_proto", "pptp") 235 235 && nvram_match("pptp_use_dhcp", "1")) 236 {237 236 eval("ifconfig", wan_ifname, temp_wan_ipaddr, "netmask",temp_wan_netmask, "up"); 238 nvram_set("pptp_wan_ipaddr",temp_wan_ipaddr);239 }240 237 else 241 238 eval("ifconfig", wan_ifname, nvram_safe_get("wan_ipaddr"),
