Ticket #21225: patch-urlsnarf.c.diff
File patch-urlsnarf.c.diff, 634 bytes (added by hsivank@…, 15 years ago) |
---|
-
urlsnarf.c
old new 145 145 if (user == NULL) 146 146 user = "-"; 147 147 if (vhost == NULL) 148 vhost = libnet_ host_lookup(addr->daddr, Opt_dns);148 vhost = libnet_addr2name4(addr->daddr, Opt_dns); 149 149 if (referer == NULL) 150 150 referer = "-"; 151 151 if (agent == NULL) 152 152 agent = "-"; 153 153 154 154 printf("%s - %s [%s] \"%s http://%s%s\" - - \"%s\" \"%s\"\n", 155 libnet_ host_lookup(addr->saddr, Opt_dns),155 libnet_addr2name4(addr->saddr, Opt_dns), 156 156 user, timestamp(), req, vhost, uri, referer, agent); 157 157 } 158 158 fflush(stdout);