From 8073385d305c55faec41b9342d8ae19b8f3ca853 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 6 Jun 2005 23:00:28 +0000 Subject: [PATCH] Make sure we setup arrays before populating --- usr/local/www/wizards/traffic_shaper_wizard.xml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/usr/local/www/wizards/traffic_shaper_wizard.xml b/usr/local/www/wizards/traffic_shaper_wizard.xml index e2697fb497..51ca539f55 100644 --- a/usr/local/www/wizards/traffic_shaper_wizard.xml +++ b/usr/local/www/wizards/traffic_shaper_wizard.xml @@ -425,7 +425,7 @@ checkbox Prioritize Peer-to-Peer traffic This will lower the priority of P2P traffic below all other traffic. - Aimster,BitTorrent,BuddyShare,CuteMX,DCplusplus,dcc,DirectConnect,DirectFileExpress,EDonkey2000,FastTrack,Gnutella,grouper,hotComm,HotlineConnect,iMest,Napster,OpenNap,Scour,SongSpy,WinMX + Aimster,BitTorrent,BuddyShare,CuteMX,DCplusplus,dcc,DirectConnect,DirectFileExpress,EDonkey2000,FastTrack,Gnutella,grouper,hotComm,HotlineConnect,iMesh,Napster,OpenNap,Scour,SongSpy,WinMX Next @@ -545,6 +545,8 @@ /* XXX - billm - needs to actually honor what the user selects still */ if ( $_POST['enable'] ) { + $p2plist = array(); + /* To add p2p clients, push Descr,Protocol,Start,End,src/dest/both onto p2plist */ if($_POST['Aimster'] != "") $p2plist[] = array('Aimster','tcp','7668','7668','both'); @@ -927,6 +929,8 @@ $queue['attachtoqueue'] = "qLANRoot"; $config['shaper']['queue'][] = $queue; + $othersplist = array(); + if($_POST['MSRDP'] != "") { /* MSRDP */ $othersplist[] = array('MSRDP','tcp','3389','3389','both');