[client] Add netstack support for Android cli (#4319)

This commit is contained in:
plusls
2025-08-26 21:40:01 +08:00
committed by GitHub
parent 3488a516c9
commit 9f84165763
6 changed files with 38 additions and 5 deletions

View File

@@ -1,6 +1,3 @@
//go:build !android
// +build !android
package device
import (
@@ -47,7 +44,7 @@ func NewNetstackDevice(name string, address wgaddr.Address, wgPort int, key stri
}
}
func (t *TunNetstackDevice) Create() (WGConfigurer, error) {
func (t *TunNetstackDevice) create() (WGConfigurer, error) {
log.Info("create nbnetstack tun interface")
// TODO: get from service listener runtime IP