Commit b4348256 authored by Gary Wong's avatar Gary Wong

A workaround to cope with invalid advertisements sometimes produced by

ptopgen.  (Obviously the root problem must be investigated once we
have more time.)
parent 54785107
......@@ -73,6 +73,11 @@ sub Map($)
return GeniResponse->Create( GENIRESPONSE_UNSUPPORTED )
unless $HAVE_XERCES eq "yes";
# Temporary ugly hack: ptopgen occasionally spits out invalid
# bandwidth elements. We'll patch them up by hand until ptopgen
# is fixed...
$ad =~ s{<bandwidth></bandwidth>}{<bandwidth>100000</bandwidth>}g;
#
# Use assign in xml mode to spit back an xml file.
#
......
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