Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
企猫商务
frp
提交
487c8d7c
F
frp
项目概览
企猫商务
/
frp
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
frp
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
487c8d7c
编写于
2月 04, 2020
作者:
F
fatedier
提交者:
GitHub
2月 04, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1637 from fatedier/dev
bump version to v0.31.2
上级
f480160e
69fa7ed1
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
11 addition
and
11 deletion
+11
-11
README_zh.md
README_zh.md
+2
-2
client/proxy/proxy_wrapper.go
client/proxy/proxy_wrapper.go
+5
-5
conf/frpc_full.ini
conf/frpc_full.ini
+2
-2
utils/version/version.go
utils/version/version.go
+1
-1
utils/vhost/resource.go
utils/vhost/resource.go
+1
-1
未找到文件。
README_zh.md
浏览文件 @
487c8d7c
...
...
@@ -546,10 +546,10 @@ allow_ports = 2000-3000,3001,3003,4000-50000
type
=
tcp
local_port
=
22
remote_port
=
6000
bandwith_limit
=
1MB
bandwi
d
th_limit
=
1MB
```
在代理配置中增加
`bandwith_limit`
字段启用此功能,目前仅支持
`MB`
和
`KB`
单位。
在代理配置中增加
`bandwi
d
th_limit`
字段启用此功能,目前仅支持
`MB`
和
`KB`
单位。
### TCP 多路复用
...
...
client/proxy/proxy_wrapper.go
浏览文件 @
487c8d7c
...
...
@@ -112,6 +112,7 @@ func (pw *ProxyWrapper) SetRunningStatus(remoteAddr string, respErr string) erro
}
if
err
:=
pw
.
pxy
.
Run
();
err
!=
nil
{
pw
.
close
()
pw
.
Status
=
ProxyStatusStartErr
pw
.
Err
=
err
.
Error
()
pw
.
lastStartErr
=
time
.
Now
()
...
...
@@ -140,7 +141,10 @@ func (pw *ProxyWrapper) Stop() {
pw
.
monitor
.
Stop
()
}
pw
.
Status
=
ProxyStatusClosed
pw
.
close
()
}
func
(
pw
*
ProxyWrapper
)
close
()
{
pw
.
handler
(
event
.
EvCloseProxy
,
&
event
.
CloseProxyPayload
{
CloseProxyMsg
:
&
msg
.
CloseProxy
{
ProxyName
:
pw
.
Name
,
...
...
@@ -178,11 +182,7 @@ func (pw *ProxyWrapper) checkWorker() {
}
else
{
pw
.
mu
.
Lock
()
if
pw
.
Status
==
ProxyStatusRunning
||
pw
.
Status
==
ProxyStatusWaitStart
{
pw
.
handler
(
event
.
EvCloseProxy
,
&
event
.
CloseProxyPayload
{
CloseProxyMsg
:
&
msg
.
CloseProxy
{
ProxyName
:
pw
.
Name
,
},
})
pw
.
close
()
xl
.
Trace
(
"change status from [%s] to [%s]"
,
pw
.
Status
,
ProxyStatusCheckFailed
)
pw
.
Status
=
ProxyStatusCheckFailed
}
...
...
conf/frpc_full.ini
浏览文件 @
487c8d7c
...
...
@@ -75,8 +75,8 @@ meta_var2 = 234
type
=
tcp
local_ip
=
127.0.0.1
local_port
=
22
# limit bandwith for this proxy, unit is KB and MB
bandwith_limit
=
1MB
# limit bandwi
d
th for this proxy, unit is KB and MB
bandwi
d
th_limit
=
1MB
# true or false, if true, messages between frps and frpc will be encrypted, default is false
use_encryption
=
false
# if true, message will be compressed
...
...
utils/version/version.go
浏览文件 @
487c8d7c
...
...
@@ -19,7 +19,7 @@ import (
"strings"
)
var
version
string
=
"0.31.
1
"
var
version
string
=
"0.31.
2
"
func
Full
()
string
{
return
version
...
...
utils/vhost/resource.go
浏览文件 @
487c8d7c
...
...
@@ -41,7 +41,7 @@ const (
</style>
</head>
<body>
<h1>The page you
visit
not found.</h1>
<h1>The page you
requested was
not found.</h1>
<p>Sorry, the page you are looking for is currently unavailable.<br/>
Please try again later.</p>
<p>The server is powered by <a href="https://github.com/fatedier/frp">frp</a>.</p>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录