tunneldigger: Support bind to interface option.

This commit is contained in:
Jernej Kos 2015-09-30 10:48:19 +02:00
parent ee3d691136
commit ba1458bc87
2 changed files with 4 additions and 2 deletions

View File

@ -1,9 +1,9 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=tunneldigger
PKG_VERSION:=0.4.2
PKG_VERSION:=0.4.3
PKG_RELEASE:=1
PKG_REV:=604c4351dfa4fc58df0e93a9c0df8b937f8c4c92
PKG_REV:=42288abb57261e07491a8233fec2e0741dcb8d52
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=git://github.com/wlanslovenija/tunneldigger.git

View File

@ -20,6 +20,7 @@ config_cb() {
config_get interface "$cfg" interface
config_get limit_bw_down "$cfg" limit_bw_down
config_get hook_script "$cfg" hook_script
config_get bind_interface "$cfg" bind_interface
[ $enabled -eq 0 ] && return
@ -30,6 +31,7 @@ config_cb() {
[ ! -z "${limit_bw_down}" ] && append broker_opts "-L ${limit_bw_down}"
[ ! -z "${hook_script}" ] && append broker_opts "-s ${hook_script}"
[ ! -z "${bind_interface}" ] && append broker_opts "-I ${bind_interface}"
if [ -z "$uuid" ]; then
missing uuid