[frpc] 启动失败:session shutdown

in 日常 with 2 comments

困扰我很久了,无论换哪个mossfrp节点都有问题。

hiz@izCloud:/home/hiz $ frpc -v
0.51.3

hiz@izCloud:/home/hiz $ frpc
2023/10/07 15:28:37 [I] [root.go:220] start frpc service for config file [./frpc.ini]
2023/10/07 15:28:37 [W] [service.go:133] login to server failed: session shutdown
2023/10/07 15:28:37 [I] [root.go:236] frpc service for config file [./frpc.ini] stopped

始终不成功,难道是版本的问题?于是我去看了看frpc版本更新,终于发现了问题:

v0.50.0

Notes

For enhanced security, the default values for tls_enable and
disable_custom_tls_first_byte have been set to true.

If you wish to revert to the previous default values, you need to manually set the values of these two parameters to false.

原来如此,TLS加密被启用了。安全嘛,能理解,可是!
有些旧版的frps不支持,那么只需要在 [common] 下加上: tls_enable = false

hiz@izCloud:/home/hiz $ frpc
2023/10/07 15:32:09 [I] [root.go:220] start frpc service for config file [./frpc.ini]
2023/10/07 15:32:09 [I] [service.go:301] [399795a6fdcb2343] login to server success, get run id [399795a6fdcb2343]

完美!

Responses
  1. shagun

    error resolved or not??

    Reply
    1. zlh
      @shagun

      resolved!only by adding one line.
      已解决!只需要添加一行

      [common] tls_enable = false

      Reply