headappheader(req, "X-Ash-Port", sprintf3("%i", ntohs(((struct sockaddr_in6 *)&tcp->name)->sin6_port)));
}
headappheader(req, "X-Ash-Server-Port", sprintf3("%i", tcp->port->sport));
+ headappheader(req, "X-Ash-Protocol", "http");
return(0);
}
exit(1);
}
} else {
- mustart(listenloop, fd, port);
+ omalloc(tcp);
+ tcp->fd = fd;
+ tcp->sport = port;
+ mustart(listenloop, tcp);
}
}