Make RegisterProcessFinder a CoreController method,version = 36
This commit is contained in:
1 parent
4371ac2864
commit
18c5fef498
2 files changed
+2
-5
No files matched your search
@@ -1,10 +1,7 @@
|
||||
//go:build android
|
||||
|
||||
package libv2ray
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
corenet "github.com/xtls/xray-core/common/net"
|
||||
)
|
||||
|
||||
@@ -27,7 +24,7 @@ type ProcessFinder interface {
|
||||
// enabling per-app routing based on UID. Must be called before starting the
|
||||
// core for process-based routing rules to work.
|
||||
// Pass nil to unregister a previously registered finder.
|
||||
func RegisterProcessFinder(finder ProcessFinder) {
|
||||
func (x *CoreController) RegisterProcessFinder(finder ProcessFinder) {
|
||||
if finder == nil {
|
||||
corenet.RegisterAndroidProcessFinder(nil)
|
||||
return
|
||||
+1
-1
@@ -195,7 +195,7 @@ func MeasureOutboundDelay(ConfigureFileContent string, url string) (int64, error
|
||||
|
||||
// CheckVersionX returns the library and Xray versions
|
||||
func CheckVersionX() string {
|
||||
var version = 35
|
||||
var version = 36
|
||||
return fmt.Sprintf("Lib v%d, Xray-core v%s", version, core.Version())
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user