Revert "bugfix: define tun hostname for olsrd"

This reverts commit d4f6aea68e.
This commit is contained in:
Darryl Quinn 2015-07-07 21:31:24 -05:00
parent 0359796a33
commit 3872261893
1 changed files with 5 additions and 4 deletions

View File

@ -101,9 +101,7 @@ foreach (@tunnelnames)
$section=&uci_get_named_section("vtun",$_);
if ($section->{enabled} eq 1)
{
my $sip=$section->{serverip};
push(@tunnels,"tun${tunnum}");
push @hosts, qq("$sip" "tun${tunnum}.$name.local.mesh");
$tunnum++;
}
}
@ -115,13 +113,15 @@ foreach (@tunnelnames)
$section=&uci_get_named_section("vtun",$_);
if ($section->{enabled} eq 1)
{
my $cip=$section->{clientip};
push(@tunnels,"tun${tunnum}");
push @hosts, qq("$cip" "tun${tunnum}.$name.local.mesh");
$tunnum++;
}
}
# add the nameservice plugin
push @file, qq(\nLoadPlugin "olsrd_nameservice.so.0.3"\n);
push @file, qq({\n);
@ -145,5 +145,6 @@ push @file, qq(\n{\n);
push @file, qq( Ip4Broadcast 255.255.255.255\n);
push @file, qq(}\n);
# write the file
print @file;