Skip to content

Commit

Permalink
webui: move killswitch setting to the Network Settings, and reorganiz…
Browse files Browse the repository at this point in the history
…e order in that section
  • Loading branch information
RMerl committed Aug 6, 2021
1 parent beda779 commit 2e98e45
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions release/src/router/www/Advanced_OpenVPNClient_Content.asp
Original file line number Diff line number Diff line change
Expand Up @@ -1021,25 +1021,6 @@ function refreshVPNIP() {
<label style="margin-left: 4em;">Port:</label><input type="text" maxlength="5" class="input_6_table" name="vpn_client_port" onKeyPress="return validator.isNumber(this,event);" value="<% nvram_get("vpn_client_port"); %>" >
</td>
</tr>
<tr>
<th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(50,19);">Redirect Internet traffic through tunnel</a></th>
<td colspan="2">
<select name="vpn_client_rgw" class="input_option" onChange="update_visibility();">
</select>
<label style="padding-left:3em;" id="client_gateway_label">Gateway:</label><input type="text" maxlength="15" class="input_15_table" id="vpn_client_gw" name="vpn_client_gw" onkeypress="return validator.isIPAddr(this, event);" value="<% nvram_get("vpn_client_gw"); %>">
</td>
</tr>
<tr id="client_adns">
<th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(50,24);">Accept DNS Configuration</a></th>
<td>
<select name="vpn_client_adns" class="input_option">
<option value="0" <% nvram_match("vpn_client_adns","0","selected"); %> >Disabled</option>
<option value="1" <% nvram_match("vpn_client_adns","1","selected"); %> >Relaxed</option>
<option value="2" <% nvram_match("vpn_client_adns","2","selected"); %> >Strict</option>
<option value="3" <% nvram_match("vpn_client_adns","3","selected"); %> >Exclusive</option>
</select>
</td>
</tr>
<tr id="client_bridge">
<th>Server is on the same subnet</th>
<td>
Expand Down Expand Up @@ -1077,6 +1058,32 @@ function refreshVPNIP() {
<input type="text" maxlength="15" class="input_15_table" name="vpn_client_nm" onkeypress="return validator.isIPAddr(this, event);" value="<% nvram_get("vpn_client_nm"); %>">
</td>
</tr>
<tr id="client_adns">
<th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(50,24);">Accept DNS Configuration</a></th>
<td>
<select name="vpn_client_adns" class="input_option">
<option value="0" <% nvram_match("vpn_client_adns","0","selected"); %> >Disabled</option>
<option value="1" <% nvram_match("vpn_client_adns","1","selected"); %> >Relaxed</option>
<option value="2" <% nvram_match("vpn_client_adns","2","selected"); %> >Strict</option>
<option value="3" <% nvram_match("vpn_client_adns","3","selected"); %> >Exclusive</option>
</select>
</td>
</tr>
<tr>
<th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(50,19);">Redirect Internet traffic through tunnel</a></th>
<td colspan="2">
<select name="vpn_client_rgw" class="input_option" onChange="update_visibility();">
</select>
<label style="padding-left:3em;" id="client_gateway_label">Gateway:</label><input type="text" maxlength="15" class="input_15_table" id="vpn_client_gw" name="vpn_client_gw" onkeypress="return validator.isIPAddr(this, event);" value="<% nvram_get("vpn_client_gw"); %>">
</td>
</tr>
<tr id="client_enforce">
<th>Killswitch - Block routed clients if tunnel goes down</th>
<td>
<input type="radio" name="vpn_client_enforce" class="input" value="1" <% nvram_match_x("", "vpn_client_enforce", "1", "checked"); %>><#checkbox_Yes#>
<input type="radio" name="vpn_client_enforce" class="input" value="0" <% nvram_match_x("", "vpn_client_enforce", "0", "checked"); %>><#checkbox_No#>
</td>
</tr>
</table>

<table width="100%" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#6b8fa3" class="FormTable">
Expand Down Expand Up @@ -1225,13 +1232,6 @@ function refreshVPNIP() {
<label style="padding-left:3em;" id="client_cn_label">Value:</label><input type="text" maxlength="255" class="input_22_table" id="vpn_client_cn" name="vpn_client_cn" value="<% nvram_get("vpn_client_cn"); %>">
</td>
</tr>
<tr id="client_enforce">
<th>Killswitch - Block routed clients if tunnel goes down</th>
<td>
<input type="radio" name="vpn_client_enforce" class="input" value="1" <% nvram_match_x("", "vpn_client_enforce", "1", "checked"); %>><#checkbox_Yes#>
<input type="radio" name="vpn_client_enforce" class="input" value="0" <% nvram_match_x("", "vpn_client_enforce", "0", "checked"); %>><#checkbox_No#>
</td>
</tr>
</table>

<table id="selectiveTable" width="100%" border="1" align="center" cellpadding="4" cellspacing="0" class="FormTable_table" style="margin-top:8px;">
Expand Down

0 comments on commit 2e98e45

Please sign in to comment.