Skip to content

Fix for case of weird devices sending weird things#25

Open
fireduck64 wants to merge 1 commit intobitletorg:masterfrom
fireduck64:master
Open

Fix for case of weird devices sending weird things#25
fireduck64 wants to merge 1 commit intobitletorg:masterfrom
fireduck64:master

Conversation

@fireduck64
Copy link

Situation:

Local network has pfSense router with upnp enabled, also has Ubiquity Cloudkey 2.0 that feels like putting its oar in.

A reply comes in to the discovery from the cloud key:

HTTP/1.1 200 OK
Cache-Control: max-age = 60
Ext:
Location: http://10.3.0.75:8080/upnp
SERVER: UPnP/1.0 UniFi/6.5.55
ST: upnp:rootdevice
USN: uuid:3C86D905-39E4-4FDC-963C-04E19F2791BB::upnp:rootdevice

This results in:
java.io.FileNotFoundException: http://10.3.0.75:8080/upnp
(Apparently the URL they provide results in a 404)

After this, the proper router reply comes in. This change is to basically ignore any device where we get errors trying to parse or understand them.

paulzzh added a commit to PBH-BTN/PeerBanHelper that referenced this pull request Feb 28, 2026
Ghost-chu pushed a commit to PBH-BTN/PeerBanHelper that referenced this pull request Feb 28, 2026
paulzzh added a commit to PBH-BTN/PeerBanHelper that referenced this pull request Feb 28, 2026
* Allow List 更新后,解除已封禁的 Peer

* 自动解封处于封禁列表的 BTN 允许列表 IP 地址

* bump version

* 换成 scheduleUnBanPeer 来通知下载器

* 添加语言文本

* 移除未使用的 import

* 换成 private

* 拉取 weupnp

https://github.com/bitletorg/weupnp

* 修复 网络变动重新扫描

* 默认timeout就行

* 修复文档

* 加个 try-catch

* fix weupnp

Merge bitletorg/weupnp#25

* 提高网关扫描成功率

* 退出时不要执行扫描

* 不需要

* 更新繁中文本

* 添加通知消息

* 我直接换回常规 JRE

---------

Co-authored-by: Ghost_chu <ghostchu@111.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant