[GH-ISSUE #2306] 36.0版本对端口的判断异常 #1830

Closed
opened 2026-05-05 13:10:57 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @zsinba on GitHub (Mar 17, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2306

[REQUIRED] hat version of frp are you using

Version: 36.0

[REQUIRED] What operating system and processor architecture are you using
OS: Linux Ubuntu 20.04/ 群晖NAS DS1618+
CPU architecture:
Intel I7 10
Atom ??

[REQUIRED] description of errors

confile

log file

Steps to reproduce the issue

  1. 在NAS上面跑的是35.1版本的, 这个版本可以杀掉\重启等操作 .

  2. 刚编译了36.0版本的,尝试杀掉35.1后启动36.0 ,提示端口被占用. 我绑定是18080端口,这个在35.1下面一直正常的执行的,但是两样 的配置文件在36.0下面,提示端口被占用.
    如下图所示的配置:
    image

  3. 在Ubuntu20.04(这是Windows下面的WSL,安装的Ubuntu20.04: Linux SBIN-Laptop2021 4.4.0-19041-Microsoft #488-Microsoft Mon Sep 01 13:43:00 PST 2020 x86_64 x86_64 x86_64 GNU/Linux)下面,我编译,然后启动,提示我7000端口被占用,这个是一个新的Ubuntu20.04,没有跑其他的版本的FRPS, 查看7000端口并没有被程序使用,我使用的是frps_full.ini文件,没有修改。
    截图如下图
    image

Supplementary information
没有更多信息,直接跑即可得到结果 .

Can you guess what caused this issue
猜测在36.0里,判断端口是否被使用时出错的.

Checklist:

  • [*] I included all information required in the sections above
  • [*] I made sure there are no duplicates of this report (Use Search)
Originally created by @zsinba on GitHub (Mar 17, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2306 <!-- From Chinese to English by machine translation, welcome to revise and polish. --> <!-- ⚠️⚠️ Incomplete reports will be marked as invalid, and closed, with few exceptions ⚠️⚠️ --> <!-- in addition, please use search well so that the same solution can be found in the feedback, we will close it directly --> <!-- for convenience of differentiation, use FRPS or FRPC to refer to the FRP server or client --> **[REQUIRED] hat version of frp are you using** <!-- Use ./frpc -v or ./frps -v --> Version: 36.0 **[REQUIRED] What operating system and processor architecture are you using** OS: Linux Ubuntu 20.04/ 群晖NAS DS1618+ CPU architecture: Intel I7 10 Atom ?? **[REQUIRED] description of errors** **confile** <!-- Please pay attention to hiding the token, server_addr and other privacy information --> **log file** <!-- If the file is too large, use Pastebin, for example https://pastebin.ubuntu.com/ --> **Steps to reproduce the issue** 1. 在NAS上面跑的是35.1版本的, 这个版本可以杀掉\重启等操作 . 2. 刚编译了36.0版本的,尝试杀掉35.1后启动36.0 ,提示端口被占用. 我绑定是18080端口,这个在35.1下面一直正常的执行的,但是两样 的配置文件在36.0下面,提示端口被占用. 如下图所示的配置: ![image](https://user-images.githubusercontent.com/890157/111422552-d7de2180-8729-11eb-819a-d20eff741e5c.png) 3. 在Ubuntu20.04(这是Windows下面的WSL,安装的Ubuntu20.04: _Linux SBIN-Laptop2021 4.4.0-19041-Microsoft #488-Microsoft Mon Sep 01 13:43:00 PST 2020 x86_64 x86_64 x86_64 GNU/Linux_)下面,我编译,然后启动,提示我7000端口被占用,这个是一个新的Ubuntu20.04,没有跑其他的版本的FRPS, 查看7000端口并没有被程序使用,我使用的是frps_full.ini文件,没有修改。 截图如下图 ![image](https://user-images.githubusercontent.com/890157/111422691-06f49300-872a-11eb-82ac-a86a074b0263.png) **Supplementary information** 没有更多信息,直接跑即可得到结果 . **Can you guess what caused this issue** 猜测在36.0里,判断端口是否被使用时出错的. **Checklist**: <!--- Make sure you've completed the following steps (put an "X" between of brackets): --> - [*] I included all information required in the sections above - [*] I made sure there are no duplicates of this report [(Use Search)](https://github.com/fatedier/frp/issues?q=is%3Aissue)
Author
Owner

@zsinba commented on GitHub (Mar 17, 2021):

上面的两个环境,我都进行了确认, WSL的7000端口被占用提示,我确认Windows和WSL都没有使用7000端口.
上面提到的在NAS下面, 同样的配置,我启动35.1是可以正常启动,启动36.0的时候,就会提示18080端口被占用.

这是我的重启脚本:
image

<!-- gh-comment-id:800823922 --> @zsinba commented on GitHub (Mar 17, 2021): 上面的两个环境,我都进行了确认, WSL的7000端口被占用提示,我确认Windows和WSL都没有使用7000端口. 上面提到的在NAS下面, 同样的配置,我启动35.1是可以正常启动,启动36.0的时候,就会提示18080端口被占用. 这是我的重启脚本: ![image](https://user-images.githubusercontent.com/890157/111422948-81251780-872a-11eb-9660-7e43d9686683.png)
Author
Owner

@zsinba commented on GitHub (Mar 19, 2021):

请更新到主线上,重新发布36.1版本吧,不然现在的36版本不能用呀.

<!-- gh-comment-id:802468705 --> @zsinba commented on GitHub (Mar 19, 2021): 请更新到主线上,重新发布36.1版本吧,不然现在的36版本不能用呀.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#1830
No description provided.