stealth / sshttp

SSH/HTTP(S) multiplexer. Run a webserver and a sshd on the same port w/o changes.
http://c-skills.blogspot.com
869 stars 97 forks source link

mid-function includes break compile on Ubuntu 16.04 #7

Closed luastoned closed 8 years ago

luastoned commented 8 years ago

Basically you are doing #include <linux/netfilter_ipv4.h> right in the middle of int dstaddr(int sock, sockaddr *dst, socklen_t dlen) and the compiler does not seem happy about it.

In file included from socket.cc:131:
swab.h: In function 'int NS_Socket::dstaddr(int, sockaddr*, socklen_t)':
swab.h:8:1: error: a function-definition is not allowed here before '{' token
stealth commented 8 years ago

solved by latest commits for both branches. can you compile and verify it works on (was it Ubuntu 16.04?)

luastoned commented 8 years ago

Compile works on 16.04 now. Cheers.

ZeroChaos- commented 7 years ago

this is kind of a big deal, would you mind making a release with this fix?