Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancing the support for query of /etc/hosts and simplifying the code. #4349

Merged
merged 52 commits into from
Aug 12, 2021
Merged

Enhancing the support for query of /etc/hosts and simplifying the code. #4349

merged 52 commits into from
Aug 12, 2021

Conversation

NathanFreeman
Copy link
Member

Enhancing the support for query of /etc/hosts and simplifying the code.

# the contents of /etc/hosts file are as follow
127.0.0.1
127.0.0.1 localhost                www.baidu.com
                 127.0.0.1                       bbb.com  #ccc.com
# 127.0.0.1                         ddd.com

so , the programs can handle complex configurations of /etc/hosts file just like linux os.

Thanks.

@codecov
Copy link

codecov bot commented Aug 1, 2021

Codecov Report

Merging #4349 (5ecb59f) into master (067f594) will increase coverage by 0.13%.
The diff coverage is 97.14%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4349      +/-   ##
==========================================
+ Coverage   50.66%   50.80%   +0.13%     
==========================================
  Files          72       72              
  Lines       14516    14528      +12     
==========================================
+ Hits         7355     7381      +26     
+ Misses       7161     7147      -14     
Impacted Files Coverage Δ
src/network/dns.cc 88.38% <97.14%> (+1.26%) ⬆️
src/os/async_thread.cc 66.66% <0.00%> (-2.20%) ⬇️
src/server/master.cc 54.04% <0.00%> (-0.06%) ⬇️
src/coroutine/socket.cc 38.78% <0.00%> (-0.05%) ⬇️
src/os/signal.cc 73.61% <0.00%> (ø)
src/protocol/base.cc 63.15% <0.00%> (ø)
src/protocol/http.cc 30.09% <0.00%> (ø)
src/protocol/mqtt.cc 0.00% <0.00%> (ø)
src/protocol/redis.cc 58.51% <0.00%> (ø)
src/os/process_pool.cc 57.89% <0.00%> (ø)
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4b9839d...5ecb59f. Read the comment docs.

@matyhtf
Copy link
Member

matyhtf commented Aug 4, 2021

@NathanFreeman 请添加微信 19921030512 详细沟通

@zmyWL
Copy link
Contributor

zmyWL commented Aug 5, 2021

代码没问题

@matyhtf matyhtf merged commit e64e5a3 into swoole:master Aug 12, 2021
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.

3 participants