Use IpEndpoint's FromStr implementation
m-labs/smoltcp#102 implmented FromStr
for IpEndpoint
. Currently parse_endpoint
parses the port and IP address manually. We should use the FromStr
implementation instead.
Note: we need to maintain the same defaults. AFAIK the current upstream implementation of the parser will return an error for :80
while parse_endpoint
will not.