summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2008-05-08 02:15:35 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2008-05-08 02:15:35 +0000
commite583009078bed3a510608f33a7e9b9239be7eb58 (patch)
treedb5b1abc5141b3998ed22fb5113dcd0c574a2c6f
parent726b77034a23e90e51ad1a471d0800da71ccdc2a (diff)
missed to set the default for tables to round-robin, so it was
loadbalance after the grammar change. make it round-robin again.
-rw-r--r--usr.sbin/relayd/parse.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/relayd/parse.y b/usr.sbin/relayd/parse.y
index e4a49edcab0..2b6e879364b 100644
--- a/usr.sbin/relayd/parse.y
+++ b/usr.sbin/relayd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.113 2008/05/07 01:49:29 reyk Exp $ */
+/* $OpenBSD: parse.y,v 1.114 2008/05/08 02:15:34 reyk Exp $ */
/*
* Copyright (c) 2007, 2008 Reyk Floeter <reyk@openbsd.org>
@@ -1062,6 +1062,7 @@ relay : RELAY STRING {
r->rl_proto = NULL;
r->rl_conf.proto = EMPTY_ID;
r->rl_conf.dsttable = EMPTY_ID;
+ r->rl_conf.dstmode = RELAY_DSTMODE_DEFAULT;
r->rl_conf.dstretry = 0;
if (last_relay_id == INT_MAX) {
yyerror("too many relays defined");