[GH-ISSUE #51] [Feature Request] 自动处理带端口的IP地址 #45

Closed
opened 2026-03-01 14:38:28 +03:00 by kerem · 4 comments
Owner

Originally created by @zdm9981 on GitHub (Dec 12, 2023).
Original GitHub issue: https://github.com/Archeb/opentrace/issues/51

如1.2.3.4:1234、[2001:db8::2]:1234 地址可以直接去除端口和括号

Originally created by @zdm9981 on GitHub (Dec 12, 2023). Original GitHub issue: https://github.com/Archeb/opentrace/issues/51 如1.2.3.4:1234、[2001:db8::2]:1234 地址可以直接去除端口和括号
kerem closed this issue 2026-03-01 14:38:28 +03:00
Author
Owner

@tsosunchia commented on GitHub (Dec 12, 2023):

建议一步到位
提取https://github.com/Archeb/opentrace/issues/51 -> github.com

<!-- gh-comment-id:1851192091 --> @tsosunchia commented on GitHub (Dec 12, 2023): 建议一步到位 提取`https://github.com/Archeb/opentrace/issues/51` -> `github.com`
Author
Owner

@Archeb commented on GitHub (Dec 12, 2023):

这是一个很好的提议,我计划实现它。

<!-- gh-comment-id:1851486053 --> @Archeb commented on GitHub (Dec 12, 2023): 这是一个很好的提议,我计划实现它。
Author
Owner

@Archeb commented on GitHub (Dec 12, 2023):

建议一步到位 提取https://github.com/Archeb/opentrace/issues/51 -> github.com

URL解析这个功能反而是一直都有。然后我刚才测试了一下,IPAddress.TryParse 这个方法可以解析 [2001:db8::2]:1234 但是不能解析 1.2.3.4:1234,有点奇妙。

<!-- gh-comment-id:1851555531 --> @Archeb commented on GitHub (Dec 12, 2023): > 建议一步到位 提取`https://github.com/Archeb/opentrace/issues/51` -> `github.com` URL解析这个功能反而是一直都有。然后我刚才测试了一下,`IPAddress.TryParse` 这个方法可以解析 [2001:db8::2]:1234 但是不能解析 `1.2.3.4:1234`,有点奇妙。
Author
Owner

@Archeb commented on GitHub (Dec 12, 2023):

d54be1a35d 已实现

<!-- gh-comment-id:1851578545 --> @Archeb commented on GitHub (Dec 12, 2023): d54be1a35d39e832c1689330e1148262b9fc503e 已实现
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
starred/opentrace#45
No description provided.