Skip to content

Commit

Permalink
修复了dns-resolver自动配置时报错的BUG
Browse files Browse the repository at this point in the history
Signed-off-by: Sadam·Sadik <[email protected]>
  • Loading branch information
Haoke98 committed May 20, 2024
1 parent 59eeff3 commit 02eb7d8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion PFlowC/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
def get_version():
return '2.3.1'
return '2.4.0'
2 changes: 1 addition & 1 deletion PFlowC/utils/net.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
geoip_db = geoip2.database.Reader(GEOIP_DB_PATH)

# 初始化DNS解析器
resolver = dns.resolver.Resolver()
resolver = dns.resolver.Resolver(configure=False)
resolver.nameservers = ['223.5.5.5', '119.29.29.29', 'https://doh.pub/dns-query',
'https://dns.alidns.com/dns-query']

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ A net flow pilot in order to handle some proxy configuration automatically.
╚═╝ ╚═╝ ╚══════╝ ╚═════╝ ╚══╝╚══╝ ╚═════╝

Command line interface for Proxy Flow Controller with basic auto configurations.
Version: 2.3.1 By: BlackHaoke<[email protected]>
Version: 2.4.0 By: BlackHaoke<[email protected]>
Usage: pflow-cli [OPTIONS] COMMAND [ARGS]...

Options:
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Usage ::
╚═╝ ╚═╝ ╚══════╝ ╚═════╝ ╚══╝╚══╝ ╚═════╝

Command line interface for Proxy Flow Controller with basic auto configurations.
Version: 2.3.1 By: BlackHaoke<[email protected]>
Version: 2.4.0 By: BlackHaoke<[email protected]>
Usage: pflow-cli [OPTIONS] COMMAND [ARGS]...

Options:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

setup(
name='PFlowC',
version='2.3.1',
version='2.4.0',
url='https://github.com/Haoke98/FlowPilot',
author='Haoke98',
author_email='BlackHaoke<[email protected]>',
Expand Down

0 comments on commit 02eb7d8

Please sign in to comment.