This commit is contained in:
Xavier Henner 2019-07-16 12:56:05 +02:00
parent d21c8e550a
commit e4c5718f6d
1 changed files with 2 additions and 2 deletions

View File

@ -218,9 +218,9 @@ func (c *vpnSession) Auth(s *OpenVpnMgt) {
} }
if c.netmask == "255.255.255.255" { 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 { } 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 { for _, r := range s.ldap[c.Profile].routes {
cmd = append(cmd, fmt.Sprintf("push \"route %s vpn_gateway\"", r)) cmd = append(cmd, fmt.Sprintf("push \"route %s vpn_gateway\"", r))