Explorar o código

refactor(api): require auth check on VPNService/Restart endpoint

Mustafa Arici %!s(int64=8) %!d(string=hai) anos
pai
achega
40c87cee68
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      api/interceptor.go

+ 2 - 0
api/interceptor.go

@@ -83,6 +83,8 @@ func AuthUnaryInterceptor(ctx gcontext.Context, req interface{}, info *grpc.Unar
 			return authRequired(ctx, req, handler)
 		case "/pb.VPNService/Update":
 			return authRequired(ctx, req, handler)
+		case "/pb.VPNService/Restart":
+			return authRequired(ctx, req, handler)
 
 		// NetworkService methods
 		case "/pb.NetworkService/Create":