mirror of https://github.com/aredn/aredn.git
Merge branch 'tunnel_mainline' into develop
This commit is contained in:
commit
eb20b40eb8
|
@ -260,17 +260,6 @@ sub uci_revert()
|
|||
}
|
||||
|
||||
### UCI Helpers END ###
|
||||
sub DEBUGEXIT()
|
||||
{
|
||||
my ($text) = @_;
|
||||
http_header();
|
||||
html_header("$node setup", 1);
|
||||
print "DEBUG-";
|
||||
print $text;
|
||||
print "</body>";
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
#weird uhttpd/busybox error requires a 1 at the end of this file
|
||||
1
|
||||
|
|
|
@ -43,8 +43,6 @@ $VPNVER="1.0";
|
|||
$config = nvram_get("config");
|
||||
$node = nvram_get("node");
|
||||
$node = "NOCALL" if $node eq "";
|
||||
$unode = uc $node; # UPPER CASE NODENAME
|
||||
#$tun_server_start_num=50;
|
||||
|
||||
read_postdata();
|
||||
|
||||
|
@ -194,7 +192,7 @@ $rc=save_clients();
|
|||
#################
|
||||
# save configuration (commit)
|
||||
#################
|
||||
if($parms{button_save} and not (@cli_err or @serv_err))
|
||||
if($parms{button_save} and not @cli_err)
|
||||
{
|
||||
if (&uci_commit("vtun"))
|
||||
{
|
||||
|
|
|
@ -43,8 +43,6 @@ $VPNVER="1.0";
|
|||
$config = nvram_get("config");
|
||||
$node = nvram_get("node");
|
||||
$node = "NOCALL" if $node eq "";
|
||||
$unode = uc $node; # UPPER CASE NODENAME
|
||||
$tun_client_start_num=60;
|
||||
|
||||
read_postdata();
|
||||
|
||||
|
@ -172,7 +170,7 @@ $rc=save_connections();
|
|||
#################
|
||||
# SAVE the connections the UCI vtun file
|
||||
#################
|
||||
if($parms{button_save} and not (@conn_err or @serv_err))
|
||||
if($parms{button_save} and not @conn_err)
|
||||
{
|
||||
if (&uci_commit("vtun"))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue