save wip
This commit is contained in:
@@ -186,7 +186,10 @@ func (s *OpenVpnMgt) handleConn(conn net.Conn) {
|
||||
switch {
|
||||
// command successfull, we can ignore
|
||||
case strings.HasPrefix(line, ">SUCCESS: client-deny command succeeded"):
|
||||
|
||||
case strings.HasPrefix(line, ">HOLD"):
|
||||
s.sendCommand([]string{"hold release"}, remote)
|
||||
case strings.HasPrefix(line, ">REMOTE"):
|
||||
s.sendCommand([]string{"remote ACCEPT"}, remote)
|
||||
default:
|
||||
response = append(response, line)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user