Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
K
koko
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
koko
Commits
d77a0dda
Commit
d77a0dda
authored
May 21, 2019
by
Eric
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update]fix bugs
parent
cb4f6cd4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
switch.go
pkg/proxy/switch.go
+1
-1
No files found.
pkg/proxy/switch.go
View file @
d77a0dda
...
@@ -133,7 +133,7 @@ func (s *SwitchSession) Bridge(userConn UserConnection, srvConn ServerConnection
...
@@ -133,7 +133,7 @@ func (s *SwitchSession) Bridge(userConn UserConnection, srvConn ServerConnection
select
{
select
{
// 检测是否超过最大空闲时间
// 检测是否超过最大空闲时间
case
<-
time
.
After
(
time
.
Duration
(
s
.
MaxIdleTime
)
*
time
.
Minute
)
:
case
<-
time
.
After
(
time
.
Duration
(
s
.
MaxIdleTime
)
*
time
.
Minute
)
:
msg
:=
i18n
.
T
(
fmt
.
Sprintf
(
"
\n\
n
Connect idle more than %d minutes, disconnect"
,
s
.
MaxIdleTime
))
msg
:=
i18n
.
T
(
fmt
.
Sprintf
(
"
\n\
r
Connect idle more than %d minutes, disconnect"
,
s
.
MaxIdleTime
))
msg
=
utils
.
WrapperWarn
(
msg
)
msg
=
utils
.
WrapperWarn
(
msg
)
utils
.
IgnoreErrWriteString
(
s
.
userTran
,
msg
)
utils
.
IgnoreErrWriteString
(
s
.
userTran
,
msg
)
return
return
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment