diff options
| author | epoch <epoch@hacking.allowed.org> | 2020-07-04 00:17:41 -0500 | 
|---|---|---|
| committer | epoch <epoch@hacking.allowed.org> | 2020-07-04 00:17:41 -0500 | 
| commit | 475e2a86c9f8cc636f1387dbbeb2416ed1a444d3 (patch) | |
| tree | d45235a5748a7999f968d11c09a172140db0e1bb | |
| parent | bb7df18fefee862f7aa2697a64b95cab37ac7a3c (diff) | |
| download | uritools-475e2a86c9f8cc636f1387dbbeb2416ed1a444d3.tar.gz uritools-475e2a86c9f8cc636f1387dbbeb2416ed1a444d3.zip | |
literal IPv6 addresses in the domain portion were NOT skipping the leading [
| -rw-r--r-- | uri.h | 1 | 
1 files changed, 1 insertions, 0 deletions
| @@ -285,6 +285,7 @@ int urifromline(struct uri *u,char *line) {      if((u->port=strchr(u->domain,']')) && *u->domain == '[') {//this is an IPv6 host        *u->port=0;        u->port++; +      u->domain++;//we need to skip the leading [        if(*u->port == ':') {          *u->port=0;          u->port++;//if it ends up being empty, whatever. that's a URI like: http://host:/path | 
