mirror of https://github.com/aredn/aredn.git
Revert "bugfix: define tun hostname for olsrd"
This reverts commit d4f6aea68e
.
This commit is contained in:
parent
0359796a33
commit
3872261893
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue