Better OS checks

This commit is contained in:
AlexSSD7 2023-09-02 11:28:23 +01:00
commit 58039acc3c
9 changed files with 48 additions and 29 deletions

View file

@ -2,11 +2,12 @@ package share
import (
"net"
"runtime"
"github.com/AlexSSD7/linsk/osspecifics"
)
func IsSMBExtModeDefault() bool {
return runtime.GOOS == "windows"
return osspecifics.IsWindows()
}
var defaultListenIP = net.ParseIP("127.0.0.1")