Project

General

Profile

« Previous | Next » 

Revision 5fc24fbc

Added by Marcos M 11 months ago

Set blockbogons and blockpriv as flags in setup wizard

These config items are treated as flags everywhere else.

View differences:

src/etc/inc/wizard_utils.inc
71 71
	config_set_path('interfaces/wan', $if_wan_config);
72 72

  
73 73
	if ($bogons == "on") {
74
		config_set_path('interfaces/wan/blockbogons', "on");
74
		config_set_path('interfaces/wan/blockbogons', true);
75 75
	} else {
76 76
		config_del_path('interfaces/wan/blockbogons');
77 77
	}
78 78

  
79 79
	if ($rfc1918 == "on") {
80
		config_set_path('interfaces/wan/blockpriv', "on");
80
		config_set_path('interfaces/wan/blockpriv', true);
81 81
	} else {
82 82
		config_del_path('interfaces/wan/blockpriv');
83 83
	}

Also available in: Unified diff