mirror of
https://github.com/safing/portmaster
synced 2025-04-23 20:39:10 +00:00
16 lines
436 B
Go
16 lines
436 B
Go
package core
|
|
|
|
import (
|
|
"github.com/safing/portbase/log"
|
|
"github.com/safing/portbase/utils/osdetail"
|
|
)
|
|
|
|
// only return on Fatal error!
|
|
func startPlatformSpecific() error {
|
|
// We can't catch errors when calling WindowsNTVersion() in logging, so we call the function here, just to catch possible errors
|
|
if _, err := osdetail.WindowsNTVersion(); err != nil {
|
|
log.Errorf("failed to obtain WindowsNTVersion: %s", err)
|
|
}
|
|
|
|
return nil
|
|
}
|