Commit 12d017e4 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(login_request): Give the new client maximum penalty to start with.

	It has to be connected a while to earn the right to do
	anything.
parent 9d5102e4
/*
* $Id: connections.c,v 0.104 2003/07/24 22:05:22 ceder Exp $
* $Id: connections.c,v 0.105 2003/07/27 14:59:15 ceder Exp $
* Copyright (C) 1991-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -759,6 +759,11 @@ login_request(struct isc_scb *session)
cp->isc_session = session;
session->udg = cp;
/* Start with max penalty, so that it doesn't pay to make a lot of
new connections. */
cp->penalty = param.max_penalty;
cp->penalty_generation = penalty_generation;
if (hostname == NULL)
s_crea_str(&cp->hostname, "unknown");
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment