-
Notifications
You must be signed in to change notification settings - Fork 443
ui: support DNS SRV lookup & show resolved inetendpoint #70
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
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Jason A. Donenfeld <[email protected]>
Signed-off-by: panxuesen <[email protected]>
c1d59a2
to
6aab7cc
Compare
final Resolver resolver1 = new SimpleResolver("223.5.5.5"); | ||
final Resolver resolver2 = new SimpleResolver("223.6.6.6"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure we want Alibaba Cloud to be the DNS resolver for everyone
break; | ||
} | ||
} else { | ||
System.out.println("SRV lookup failed: " + lookup.getErrorString()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be using android.util.Log
System.out.println("SRV lookup failed: " + lookup.getErrorString()); | ||
} | ||
} catch (final TextParseException | UnknownHostException e) { | ||
System.out.println("SRV lookup failed: " + e.getMessage()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
resolved = new InetEndpoint(address.getHostAddress(), true, targetPort[0]); | ||
lastResolution = Instant.now(); | ||
} catch (final UnknownHostException e) { | ||
System.out.println("DNS lookup failed: " + e.getMessage()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
No description provided.