From fd1f79d154a00d17edebccb79afb9b98174990a7 Mon Sep 17 00:00:00 2001 From: Unbit Date: Tue, 17 Dec 2013 21:31:03 +0100 Subject: [PATCH] fixed tuntap endianess --- plugins/tuntap/firewall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/tuntap/firewall.c b/plugins/tuntap/firewall.c index 0d654001..0f60affc 100644 --- a/plugins/tuntap/firewall.c +++ b/plugins/tuntap/firewall.c @@ -350,7 +350,7 @@ void uwsgi_tuntap_peer_send_rules(int fd, struct uwsgi_tuntap_peer *peer) { exit(1); } *colon = ':'; - utpr.target = ntohl(utpr.target); + utpr.target = utpr.target; utpr.target_port = htons(atoi(colon+1)); }