Add wifi_ssid and wifi_bssid route and DNS rules

This commit is contained in:
世界 committed 2023-11-28 11:21:44 +08:00
1 parent f0571b4122
commit 253976d6c0
12 files changed
+161

No files matched your search

+6
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
}