mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-05-08 14:13:22 +00:00
chore: warn legacy browser dialer env has been removed
Agent-Logs-Url: https://github.com/XTLS/Xray-core/sessions/d30a26b2-60aa-4f86-b2ed-3c6997652bfb Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
27b8b29ef8
commit
84d04d0eab
@@ -14,6 +14,7 @@ import (
|
||||
|
||||
"github.com/gorilla/websocket"
|
||||
"github.com/xtls/xray-core/common/errors"
|
||||
"github.com/xtls/xray-core/common/platform"
|
||||
"github.com/xtls/xray-core/common/uuid"
|
||||
)
|
||||
|
||||
@@ -291,3 +292,15 @@ func connsByAddress(addr string) chan *websocket.Conn {
|
||||
}
|
||||
return dialer.conns
|
||||
}
|
||||
|
||||
func notifyRemovedEnv() {
|
||||
envAddress := platform.NewEnvFlag(platform.BrowserDialerAddress).GetValue(func() string { return "" })
|
||||
if envAddress == "" {
|
||||
return
|
||||
}
|
||||
errors.LogWarning(context.Background(), errors.PrintRemovedFeatureError("env "+platform.BrowserDialerAddress, "sockopt.browserDialer"))
|
||||
}
|
||||
|
||||
func init() {
|
||||
notifyRemovedEnv()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user