mirror of https://github.com/aredn/aredn.git
bugfix: define tun hostname for olsrd
This commit is contained in:
parent
0dc37a82de
commit
d4f6aea68e
|
@ -101,7 +101,9 @@ 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++;
|
||||
}
|
||||
}
|
||||
|
@ -113,15 +115,13 @@ 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,6 +145,5 @@ 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