Browse Source

ocserv: corrected the extraction of dyndns name

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
lilik-openwrt-22.03
Nikos Mavrogiannopoulos 10 years ago
parent
commit
251eaf99fd
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      net/ocserv/Makefile
  2. +2
    -2
      net/ocserv/files/ocserv.init

+ 1
- 1
net/ocserv/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=ocserv
PKG_VERSION:=0.8.9
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_BUILD_DIR :=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz


+ 2
- 2
net/ocserv/files/ocserv.init View File

@ -31,7 +31,7 @@ setup_config() {
test $auth = "plain" && authsuffix="\[/var/etc/ocpasswd\]"
dyndns="false"
hostname=`uci show ddns|grep domain|head -1|cut -d '=' -f 1`
hostname=`uci show ddns|grep domain|head -1|cut -d '=' -f 2`
[ -n "$hostname" ] && dyndns="true"
mkdir -p /var/etc
@ -91,7 +91,7 @@ setup_dns() {
start() {
local hostname iface
hostname=`uci show ddns|grep domain|head -1|cut -d '=' -f 1`
hostname=`uci show ddns|grep domain|head -1|cut -d '=' -f 2`
[ -z "$hostname" ] && hostname=`uci get system.@system[0].hostname`
[ ! -f /etc/ocserv/ca-key.pem ] && [ -x /usr/bin/certtool ] && {


Loading…
Cancel
Save