Skip to content

Commit

Permalink
Fix typo and clarify openconnect_get_connect_url comment slightly
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Lenski <dlenski@gmail.com>
  • Loading branch information
dlenski committed Jun 28, 2021
1 parent b821cd8 commit 85f0702
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions openconnect.h
Expand Up @@ -504,7 +504,7 @@ const char *openconnect_get_dtls_compression(struct openconnect_info *);
* So, now we have openconnect_get_connect_url() which gets the full URL
* including the port and path, and the original hostname.
*
* Since we're now back to giving openconnect a hosthame, we need to add
* Since we're now back to giving openconnect a hostname, we need to add
* a '--resolve' argument to avoid the round robin DNS problem and ensure
* that we actually connect to the same server we authenticated to. The
* arguments for that can be obtained from openconnect_get_dnsname() and
Expand All @@ -515,7 +515,8 @@ const char *openconnect_get_dtls_compression(struct openconnect_info *);
* openconnect $CONNECT_URL --servercert $FINGERPRINT --cookie $COOKIE \
* --resolve $DNSNAME:$HOSTNAME
*
* ... where '$HOSTNAME', as noted, isn't actually a hostname. Sorry.
* ... where '$HOSTNAME', as returned by openconnect_get_hostname(),
* isn't actually a hostname (as noted above). Sorry.
*
* In fact, what you get back from openconnect_get_hostname() is the
* IP literal in the form it would appear in a URL. So IPv6 addresses
Expand Down

0 comments on commit 85f0702

Please sign in to comment.