|
@@ -14,6 +14,7 @@ import (
|
|
|
"v2ray.com/core/common/session"
|
|
"v2ray.com/core/common/session"
|
|
|
"v2ray.com/core/common/signal"
|
|
"v2ray.com/core/common/signal"
|
|
|
"v2ray.com/core/common/task"
|
|
"v2ray.com/core/common/task"
|
|
|
|
|
+ "v2ray.com/core/features"
|
|
|
"v2ray.com/core/features/policy"
|
|
"v2ray.com/core/features/policy"
|
|
|
"v2ray.com/core/features/routing"
|
|
"v2ray.com/core/features/routing"
|
|
|
"v2ray.com/core/transport/internet"
|
|
"v2ray.com/core/transport/internet"
|
|
@@ -40,7 +41,7 @@ func (s *Server) policy() policy.Session {
|
|
|
config := s.config
|
|
config := s.config
|
|
|
p := s.v.PolicyManager().ForLevel(config.UserLevel)
|
|
p := s.v.PolicyManager().ForLevel(config.UserLevel)
|
|
|
if config.Timeout > 0 {
|
|
if config.Timeout > 0 {
|
|
|
- core.PrintDeprecatedFeatureWarning("Socks timeout")
|
|
|
|
|
|
|
+ features.PrintDeprecatedFeatureWarning("Socks timeout")
|
|
|
}
|
|
}
|
|
|
if config.Timeout > 0 && config.UserLevel == 0 {
|
|
if config.Timeout > 0 && config.UserLevel == 0 {
|
|
|
p.Timeouts.ConnectionIdle = time.Duration(config.Timeout) * time.Second
|
|
p.Timeouts.ConnectionIdle = time.Duration(config.Timeout) * time.Second
|