Change 'localhost' to '127.0.0.1'
In some weird case like a misconfigured VPN application, localhost would be resolved as "localhost.somedomain", which leading to an `OSError: [Errno 49] Can't assign requested address`.
I think we should replace "localhost" with a more explicit "127.0.0.1".
合并状态:已合并 合并于 2025-09-03 关闭于 2025-09-03 2 条评论