From e4c5718f6d671e140be6f78080f81fb864a729d5 Mon Sep 17 00:00:00 2001 From: Xavier Henner Date: Tue, 16 Jul 2019 12:56:05 +0200 Subject: [PATCH] typo --- vpnsession.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vpnsession.go b/vpnsession.go index 056cbdd..e59250b 100644 --- a/vpnsession.go +++ b/vpnsession.go @@ -218,9 +218,9 @@ func (c *vpnSession) Auth(s *OpenVpnMgt) { } if c.netmask == "255.255.255.255" { - cmd = apennd(cmd, fmt.Sprintf("ifconfig-push %s %s", ip, c.localIP)) + cmd = append(cmd, fmt.Sprintf("ifconfig-push %s %s", ip, c.localIP)) } else { - cmd = apennd(cmd, fmt.Sprintf("ifconfig-push %s %s", ip, c.netmask)) + cmd = append(cmd, fmt.Sprintf("ifconfig-push %s %s", ip, c.netmask)) } for _, r := range s.ldap[c.Profile].routes { cmd = append(cmd, fmt.Sprintf("push \"route %s vpn_gateway\"", r))