Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmd/ovpm/cmd_vpn.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,11 @@ var vpnUpdateCommand = cli.Command{
},
cli.BoolFlag{
Name: "enable-use-lzo",
Usage: fmt.Sprintf("Enable use of the deprecated lzo compression algorithm to support older clients."),
Usage: "Enable use of the deprecated lzo compression algorithm to support older clients.",
},
cli.BoolFlag{
Name: "disable-use-lzo",
Usage: fmt.Sprintf("Disable use of the deprecated lzo compression algorithm to support older clients."),
Usage: "Disable use of the deprecated lzo compression algorithm to support older clients.",
},
},
Action: func(c *cli.Context) error {
Expand Down
6 changes: 3 additions & 3 deletions vpn.go
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ func (svr *Server) StartVPNProc() {
return
}
if vpnProc == nil {
panic(fmt.Sprintf("vpnProc is not initialized!"))
panic("vpnProc is not initialized!")
}
if vpnProc.Status() == supervisor.RUNNING {
logrus.Error("OpenVPN is already started")
Expand All @@ -531,7 +531,7 @@ func (svr *Server) RestartVPNProc() {
return
}
if vpnProc == nil {
panic(fmt.Sprintf("vpnProc is not initialized!"))
panic("vpnProc is not initialized!")
}
svr.Emit()
vpnProc.Restart()
Expand All @@ -541,7 +541,7 @@ func (svr *Server) RestartVPNProc() {
// StopVPNProc stops the OpenVPN process.
func (svr *Server) StopVPNProc() {
if vpnProc == nil {
panic(fmt.Sprintf("vpnProc is not initialized!"))
panic("vpnProc is not initialized!")
}
if vpnProc.Status() != supervisor.RUNNING {
logrus.Error("OpenVPN is already not running")
Expand Down