bugfix: define tun hostname for olsrd

This commit is contained in:
Darryl Quinn 2015-06-29 20:07:01 -05:00
parent 0dc37a82de
commit d4f6aea68e
1 changed files with 4 additions and 5 deletions

View File

@ -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;