new: add tunnel service

This commit is contained in:
Hiddify
2024-01-29 21:55:01 +01:00
parent 25d5b8a1c5
commit 5fa28220b4
28 changed files with 364 additions and 231 deletions

View File

@@ -0,0 +1,15 @@
// Copyright 2015 Daniel Theophanes.
// Use of this source code is governed by a zlib-style
// license that can be found in the LICENSE file.
// simple does nothing except block while running the service.
package main
import "C"
import "github.com/hiddify/libcore/admin_service"
//export AdminServiceStart
func AdminServiceStart(arg *C.char) {
goArg := C.GoString(arg)
admin_service.StartService(goArg)
}