mirror of https://github.com/omar-polo/gmid.git
check also that the port number matches
This commit is contained in:
parent
f7b816dc39
commit
b777bf4b2b
2
gmid.c
2
gmid.c
|
@ -639,7 +639,7 @@ handle_open_conn(struct pollfd *fds, struct client *c)
|
|||
return;
|
||||
}
|
||||
|
||||
if (strcmp(iri.schema, "gemini")) {
|
||||
if (strcmp(iri.schema, "gemini") || iri.port_no != conf.port) {
|
||||
if (!start_reply(fds, c, PROXY_REFUSED, "won't proxy request"))
|
||||
return;
|
||||
goodbye(fds, c);
|
||||
|
|
Loading…
Reference in New Issue