Groups
Groups
Sign in
Groups
Groups
golang-nuts
Conversations
About
Send feedback
Help
Parsing IP from Request.RemoteAddr
354 views
Skip to first unread message
Peter Nguyen
unread,
Feb 17, 2014, 8:55:40 AM
2/17/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golan...@googlegroups.com
Hi,
I'm trying to parse a valid IP address from Request.RemoteAddr but was wondering if my approach is correct:
http://play.golang.org/p/SQo3dMXzIR
Is there any other method to parse IP addresses that I've overlooked? Seems a little bit hackish to need to use 2 different functions for it.
Volker Dobler
unread,
Feb 17, 2014, 9:25:55 AM
2/17/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golan...@googlegroups.com
No, You really have to do it in two steps if ports may be present.
V.
Reply all
Reply to author
Forward
0 new messages