mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2025-09-19 12:06:01 +08:00
Merge from remote branch
This commit is contained in:
5
main.go
5
main.go
@ -14,6 +14,8 @@ import (
|
||||
"github.com/Dreamacro/clash/hub"
|
||||
"github.com/Dreamacro/clash/hub/executor"
|
||||
"github.com/Dreamacro/clash/log"
|
||||
|
||||
"go.uber.org/automaxprocs/maxprocs"
|
||||
)
|
||||
|
||||
var (
|
||||
@ -44,6 +46,7 @@ func init() {
|
||||
}
|
||||
|
||||
func main() {
|
||||
maxprocs.Set(maxprocs.Logger(func(string, ...interface{}) {}))
|
||||
if version {
|
||||
fmt.Printf("Clash %s %s %s with %s %s\n", C.Version, runtime.GOOS, runtime.GOARCH, runtime.Version(), C.BuildTime)
|
||||
return
|
||||
@ -64,7 +67,7 @@ func main() {
|
||||
}
|
||||
C.SetConfig(configFile)
|
||||
} else {
|
||||
configFile := filepath.Join(C.Path.HomeDir(), C.Path.Config())
|
||||
configFile = filepath.Join(C.Path.HomeDir(), C.Path.Config())
|
||||
C.SetConfig(configFile)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user