Set TOS to the value of FEAT_TOS_SERVER, not to FEAT_TOS_SERVER...
[ircu2.10.12-pk.git] / ircd / s_bsd.c
index 2d8fb5ba39594cbe85f399c2d31a853a9fbe9224..7e3205af764cf2f3d72694d4d54363cb3b262f0f 100644 (file)
@@ -238,7 +238,7 @@ static int connect_inet(struct ConfItem* aconf, struct Client* cptr)
   /*
    * Set the TOS bits - this is nonfatal if it doesn't stick.
    */
-  if (!os_set_tos(cli_fd(cptr), FEAT_TOS_SERVER)) {
+  if (!os_set_tos(cli_fd(cptr), feature_int(FEAT_TOS_SERVER))) {
     report_error(TOS_ERROR_MSG, cli_name(cptr), errno);
   }
   if ((result = os_connect_nonb(cli_fd(cptr), &aconf->address)) == IO_FAILURE) {