Fixed SPN HUB using wrong instance
This commit is contained in:
@@ -51,6 +51,12 @@ if [[ $1 == "dev" ]]; then
|
||||
DEV="-race"
|
||||
fi
|
||||
|
||||
# Set GOOS and GOARCH for Darwin to use Linux architecture
|
||||
if [[ "$(uname)" == "Darwin" ]]; then
|
||||
export GOOS=linux
|
||||
export GOARCH=amd64
|
||||
fi
|
||||
|
||||
echo "Please notice, that this build script includes metadata into the build."
|
||||
echo "This information is useful for debugging and license compliance."
|
||||
echo "Run the compiled binary with the -version flag to see the information included."
|
||||
|
||||
@@ -14,6 +14,7 @@ import (
|
||||
"github.com/safing/portmaster/service"
|
||||
"github.com/safing/portmaster/service/configure"
|
||||
"github.com/safing/portmaster/service/updates"
|
||||
"github.com/safing/portmaster/spn"
|
||||
"github.com/safing/portmaster/spn/conf"
|
||||
)
|
||||
|
||||
@@ -75,7 +76,7 @@ func initializeGlobals(cmd *cobra.Command, args []string) {
|
||||
|
||||
// Configure service.
|
||||
cmdbase.SvcFactory = func(svcCfg *service.ServiceConfig) (cmdbase.ServiceInstance, error) {
|
||||
svc, err := service.New(svcCfg)
|
||||
svc, err := spn.New(svcCfg)
|
||||
return svc, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user