New option localhost_only to restrict connections only to localhost
Bug-Debian: https://github.com/tats/w3m/issues/117
This commit is contained in:
4
url.c
4
url.c
@@ -1696,6 +1696,10 @@ openURL(char *url, ParsedURL *pu, ParsedURL *current,
|
||||
}
|
||||
}
|
||||
|
||||
if (LocalhostOnly && pu->host &&
|
||||
strcasecmp(pu->host, "localhost") && strcasecmp(pu->host, "127.0.0.1"))
|
||||
pu->host = NULL;
|
||||
|
||||
uf.scheme = pu->scheme;
|
||||
uf.url = parsedURL2Str(pu)->ptr;
|
||||
pu->is_nocache = (option->flag & RG_NOCACHE);
|
||||
|
Reference in New Issue
Block a user