Skip to content

建议添加一个客户端别名参数,方便出错时排查问题 #21

Description

@DarkiT

例如添加一个 --client_name 的参数,启动时传入这个参数,在有这个参数的时候日志中打印类似:

[UDP] Ping client=ABCDE addr=10.11.69.207:59901
ListenUDP addr=27.47.130.177:11862 for=ABCDE

否则还是显示

ListenUDP addr=27.47.130.177:11862 for=2QQzoQZgwLxMfcjLjW8CZmS4MH9VRHc2gNB8ff3UZrSB
[UDP] Ping peer=2QQzoQZgwLxMfcjLjW8CZmS4MH9VRHc2gNB8ff3UZrSB addr=10.11.69.207:59901

因为现在出了问题要开启调试模式时,使用PEERID的话每次重启PEERID都会变化,追踪问题的时候很不方便。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions