mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-06 00:31:03 +00:00
move function to features
This commit is contained in:
12 files changed
+25
-9
No files matched your search
@@ -14,6 +14,7 @@ import (
|
||||
"v2ray.com/core/common/session"
|
||||
"v2ray.com/core/common/signal"
|
||||
"v2ray.com/core/common/task"
|
||||
"v2ray.com/core/features"
|
||||
"v2ray.com/core/features/policy"
|
||||
"v2ray.com/core/features/routing"
|
||||
"v2ray.com/core/transport/internet"
|
||||
@@ -40,7 +41,7 @@ func (s *Server) policy() policy.Session {
|
||||
config := s.config
|
||||
p := s.v.PolicyManager().ForLevel(config.UserLevel)
|
||||
if config.Timeout > 0 {
|
||||
core.PrintDeprecatedFeatureWarning("Socks timeout")
|
||||
features.PrintDeprecatedFeatureWarning("Socks timeout")
|
||||
}
|
||||
if config.Timeout > 0 && config.UserLevel == 0 {
|
||||
p.Timeouts.ConnectionIdle = time.Duration(config.Timeout) * time.Second
|
||||
|
||||
Reference in new issue
Block a user