fatedier / frp

A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.
Apache License 2.0
81.43k stars 12.82k forks source link

frpc 客户端自定义端口不起作用 #4208

Closed r0o983 closed 1 month ago

r0o983 commented 1 month ago

Bug Description

直接看配置文件。

client
  /etc/systemd/system ❯ cat frpc.service                                                                                                                                                                      with root@pve at  15:40:16
[Unit]
# 服务名称,可自定义
Description = frp server
After = network.target syslog.target
Wants = network.target

[Service]
Type = simple
# 启动frps的命令,需修改为您的frps的安装路径
ExecStart = /usr/bin/frpc -c /etc/frp/frpc.toml

[Install]
WantedBy = multi-user.target
[common]
serverAddr = "123.129.27.9"
serverPort = 7100
auth.method = "token"
auth.token = "pMudjkashduqwnjk"
log_file = ./frpc.log
log_level = info
log_max_days = 30
end
WARNING: ini format is deprecated and the support will be removed in the future, please use yaml/json/toml format instead!
login to the server failed: dial tcp 0.0.0.0:7000: connect: connection refused. With loginFailExit enabled, no additional retries will be attempted

frpc Version

0.58.0

frps Version

0.58.0

System Architecture

linux/amd64

Configurations

客户端无法使用自定义端口

Logs

No response

Steps to reproduce

  1. ...

Affected area

r0o983 commented 1 month ago

按照新版重写一遍就好了。