Skip to content

Commit

Permalink
feat: fix OS bug in InitSelfStart()
Browse files Browse the repository at this point in the history
  • Loading branch information
nomeguy committed Jul 4, 2024
1 parent 1d4179b commit ae54fbf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions run/self.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,18 @@
package run

import (
"runtime"
"strings"

"github.com/beego/beego"
"github.com/casbin/caswaf/util"
)

func InitSelfStart() {
if runtime.GOOS != "windows" {
return
}

hostname := util.GetHostname()
if strings.Count(hostname, "-") == 2 {
return
Expand Down

0 comments on commit ae54fbf

Please sign in to comment.