Export RenewFD function for Android

This commit is contained in:
Zoltán Papp
2025-09-23 19:29:50 +02:00
parent 58faa341d2
commit f088b4ae43
6 changed files with 45 additions and 8 deletions
+5
View File
@@ -6,6 +6,7 @@ import (
// CreateOnAndroid creates a new Wireguard interface, sets a given IP and brings it up.
// Will reuse an existing one.
// todo: review does this function relly necessary ir can we merge it with iOS
func (w *WGIface) CreateOnAndroid(routes []string, dns string, searchDomains []string) error {
w.mu.Lock()
defer w.mu.Unlock()
@@ -22,3 +23,7 @@ func (w *WGIface) CreateOnAndroid(routes []string, dns string, searchDomains []s
func (w *WGIface) Create() error {
return fmt.Errorf("this function has not implemented on this platform")
}
func (w *WGIface) RenewTun(fd int) error {
return w.tun.RenewTun(fd)
}