uhttpd: add option to reject requests from RFC1918 IPs to public server IPs (DNS rebinding countermeasure)

SVN-Revision: 22589
This commit is contained in:
Jo-Philipp Wich
2010-08-11 00:05:34 +00:00
parent a5371dfe39
commit 3d99f03082
7 changed files with 38 additions and 2 deletions

View File

@@ -49,6 +49,7 @@ struct path_info {
const char * sa_straddr(void *sa);
const char * sa_strport(void *sa);
int sa_port(void *sa);
int sa_rfc1918(void *sa);
char *strfind(char *haystack, int hslen, const char *needle, int ndlen);