the bind instead of just allowing it to fail.
$Log$
+ Revision 570.11 2000/04/07 19:22:45 ajc
+ * For services disabled by setting port number to -1, administratively skip
+ the bind instead of just allowing it to fail.
+
Revision 570.10 2000/03/31 04:31:02 ajc
* Quick fix to 'stats' utility to purge records with bogus timestamps
Fri Jul 10 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
* Initial CVS import
-
if (sockpath != NULL) {
newfcn->msock = ig_uds_server(sockpath, config.c_maxsessions);
}
+ else if (tcp_port < 0) { /* port -1 to disable */
+ lprintf(7, "Service has been manually disabled, skipping\n");
+ phree(newfcn);
+ return;
+ }
else {
newfcn->msock = ig_tcp_server(tcp_port, config.c_maxsessions);
}