<URL: http://bugs.freeciv.org/Ticket/Display.html?id=39682 >
It can be confusing that even when you enable authentication at configure time with --enable-auth, civserver still runs without authentication (by default). Attached patch prints notice when auth-capable civserver is started auth disabled. - ML
diff -Nurd -X.diff_ignore freeciv/server/srv_main.c freeciv/server/srv_main.c --- freeciv/server/srv_main.c 2007-09-06 17:21:33.000000000 +0300 +++ freeciv/server/srv_main.c 2007-09-08 15:21:26.000000000 +0300 @@ -927,7 +927,10 @@ server_game_free(); diplhand_free(); #ifdef HAVE_AUTH - auth_free(); + if (srvarg.auth_enabled) { + /* If auth has been initialized */ + auth_free(); + } #endif /* HAVE_AUTH */ stdinhand_free(); close_connections_and_socket(); @@ -1779,6 +1782,12 @@ **************************************************************************/ void srv_main(void) { +#ifdef HAVE_AUTH + if (!srvarg.auth_enabled) { + con_write(C_COMMENT, _("This civserver program has player authentication support, but it's currently not in use.")); + } +#endif /* HAVE_AUTH */ + /* make sure it's initialized */ if (!has_been_srv_init) { srv_init();
_______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev