samba36: Don't resolve interfaces.

It's redundant and also buggy. IPv6 link local addresses and ::1 are not resolved for example. Doesn't matter since lo and br-lan for example, resolve to them.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Acked-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
This commit is contained in:
Rosen Penev 2017-08-24 16:51:24 -07:00 committed by John Crispin
parent ccb79a310c
commit b2f60e6a72
2 changed files with 2 additions and 7 deletions

View file

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=samba PKG_NAME:=samba
PKG_VERSION:=3.6.25 PKG_VERSION:=3.6.25
PKG_RELEASE:=7 PKG_RELEASE:=8
PKG_SOURCE_URL:=https://download.samba.org/pub/samba \ PKG_SOURCE_URL:=https://download.samba.org/pub/samba \
https://download.samba.org/pub/samba/stable https://download.samba.org/pub/samba/stable

View file

@ -15,12 +15,7 @@ smb_header() {
for net in $samba_iface; do for net in $samba_iface; do
local device local device
network_is_up $net || continue network_is_up $net || continue
network_get_device device "$net" && { network_get_device device "$net"
local subnet
network_get_subnet subnet "$net" && echo -n "$subnet "
network_get_subnet6 subnet "$net" && echo -n "$subnet "
}
echo -n "${device:-$net} " echo -n "${device:-$net} "
done done
) )