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

Issue 23: IP address fetch and display #90

Merged
merged 7 commits into from
Oct 30, 2020
Merged

Issue 23: IP address fetch and display #90

merged 7 commits into from
Oct 30, 2020

Conversation

shivangswain
Copy link
Collaborator

Added the most fundamental method to fetch and display public IP address in the server verbose with exception handling

Closes #23

Copy link
Owner

@gridhead gridhead left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. @shivangswain please go ahead and merge this PR.

@@ -1,4 +1,4 @@
import asyncio, websockets, sys, click, time, os
import asyncio, websockets, sys, click, http.client, time
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's as optimized as it gets. Good work!

connection.request("GET", "/")
response = connection.getresponse()
return response.read().decode("UTF-8")
except:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The generalized exception handling would prevent service crashes in all times.

@shivangswain shivangswain merged commit a6e3b04 into gridhead:master Oct 30, 2020
@shivangswain shivangswain added the hacktoberfest-accepted Thank you for your contributions label Oct 30, 2020
gridhead added a commit that referenced this pull request Oct 30, 2020
shivangswain pushed a commit that referenced this pull request Oct 30, 2020
Added logistical changes to complement #90
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Thank you for your contributions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fetch and display the IPv4/IPv6 address on the verbose
2 participants