Use sudo instead of a custom script
This commit is contained in:
@@ -33,7 +33,6 @@ type OpenVpnMgt struct {
|
||||
newAsTemplate string
|
||||
cacheDir string
|
||||
syslog bool
|
||||
ipRouteScript string
|
||||
otpMasterSecrets []string
|
||||
hibpClient *hibp.Client
|
||||
debug bool
|
||||
@@ -130,7 +129,7 @@ func (s *OpenVpnMgt) Kill(session string, id int) error {
|
||||
if _, ok := s.clients[session][id]; !ok {
|
||||
return errors.New("unknown session id")
|
||||
}
|
||||
err, msg := s.sendCommand([]string{fmt.Sprintf("client-kill %d", id)}, session)
|
||||
err, _ := s.sendCommand([]string{fmt.Sprintf("client-kill %d", id)}, session)
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user