Skip to content

Commit

Permalink
优化:随身WiFi断电重启后frpc启动不成功 #199
Browse files Browse the repository at this point in the history
  • Loading branch information
pppscn committed Aug 12, 2022
1 parent fdc7b03 commit 313bcd8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ server_addr = 88.88.88.88
server_port = 8888
#可选,建议启用
token = 888888888
#连接服务端的超时时间(增大时间避免frpc在网络未就绪的情况下启动失败)
dial_server_timeout = 60
#第一次登陆失败后是否退出
login_fail_exit = false
#[二选一即可]每台机器不可重复,通过 http://88.88.88.88:5000 访问
[SmsForwarder-TCP]
Expand Down Expand Up @@ -178,6 +182,10 @@ server_addr = 88.88.88.88
server_port = 8888
#可选,建议启用
token = 888888888
#连接服务端的超时时间(增大时间避免frpc在网络未就绪的情况下启动失败)
dial_server_timeout = 60
#第一次登陆失败后是否退出
login_fail_exit = false
#[二选一即可]每台机器不可重复,通过 http://88.88.88.88:5000 访问
[SmsForwarder-TCP]
Expand Down
6 changes: 6 additions & 0 deletions app/src/main/res/raw/frpc.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,20 @@ server_addr = 88.88.88.88
server_port = 8888
#可选,建议启用
token = 88888888
#连接服务端的超时时间(增大时间避免frpc在网络未就绪的情况下启动失败)
dial_server_timeout = 60
#第一次登陆失败后是否退出
login_fail_exit = false

#[二选一即可]每台机器不可重复,通过 http://88.88.88.88:5000 访问
[SmsForwarder-TCP]
type = tcp
local_ip = 127.0.0.1
local_port = 5000
#只要修改下面这一行
remote_port = 5000

#[二选一即可]每台机器不可重复,通过 http://smsf.demo.com 访问
[SmsForwarder-HTTP]
type = http
local_ip = 127.0.0.1
Expand Down

0 comments on commit 313bcd8

Please sign in to comment.