Hello, The developer of Hiawatha has reported a bug in version 10.1. The bug prevent the user to use the HideProxy option. Please see look at this entry on the author's website: https://www.hiawatha-webserver.org/forum/topic/2209/#11399 How to fix the issue: Edit src/http.c and change lines 848 and 849 to: while ((forwarded = strcasestr(forwarded, "for=")) != NULL) { begin = forwarded + 4;
(In reply to Fred from comment #0) > Hello, > > The developer of Hiawatha has reported a bug in version 10.1. > The bug prevent the user to use the HideProxy option. > Please see look at this entry on the author's website: > https://www.hiawatha-webserver.org/forum/topic/2209/#11399 > > How to fix the issue: > Edit src/http.c and change lines 848 and 849 to: > > while ((forwarded = strcasestr(forwarded, "for=")) != NULL) { > begin = forwarded + 4; Hello, Fred. Thanks for the heads-up. I should be able to update the port sometime this weekend. Thanks again. --Chris
Created attachment 169614 [details] patch for www/hiawatha (svn diff) add files/patch-src__http.c to correct issue noted by this pr(1)'s reporter (Fred). Bump (add) PORTREVISION That's it! Thanks! --Chris
Created attachment 169615 [details] Build log for www/hiawatha
A commit references this bug: Author: lme Date: Sun Apr 24 10:22:48 UTC 2016 New revision: 413934 URL: https://svnweb.freebsd.org/changeset/ports/413934 Log: - Add a fix to enable HideProxy function - Bump PORTREVISION PR: 208973 Submitted by: Fred <fred@trinitech.co.uk> Approved by: maintainer Sponsored by: Essen Linuxhotel Hackathon 2016 Changes: head/www/hiawatha/Makefile head/www/hiawatha/files/patch-src__http.c
Comitted with minor changes (make makepatch), thanks!