Add wifi_ssid and wifi_bssid route and DNS rules

This commit is contained in:
世界
2023-11-18 13:51:32 +08:00
parent 83f6e022bb
commit 0e50872d04
15 changed files with 170 additions and 3 deletions

View File

@@ -41,6 +41,7 @@ type Router interface {
NetworkMonitor() tun.NetworkUpdateMonitor
InterfaceMonitor() tun.DefaultInterfaceMonitor
PackageManager() tun.PackageManager
WIFIState() WIFIState
Rules() []Rule
ClashServer() ClashServer
@@ -78,3 +79,8 @@ type DNSRule interface {
type InterfaceUpdateListener interface {
InterfaceUpdated()
}
type WIFIState struct {
SSID string
BSSID string
}