mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-09-23 00:16:54 +00:00
22 lines
448 B
Go
22 lines
448 B
Go
//go:build !linux
|
|
|
|
package main
|
|
|
|
import (
|
|
"context"
|
|
|
|
"google.golang.org/grpc/codes"
|
|
"google.golang.org/grpc/status"
|
|
)
|
|
|
|
func authorizeTakeOver(ctx context.Context, identity peerIdentity) error {
|
|
return nil
|
|
}
|
|
|
|
func authorizeSetInsecureMode(ctx context.Context, identity peerIdentity, enabled bool) error {
|
|
if enabled {
|
|
return status.Error(codes.PermissionDenied, "enabling insecure mode requires an elevated service command")
|
|
}
|
|
return nil
|
|
}
|