UltraMonkey-L7 V3(multi-thread implementation)
Révision | eb37be3b252877d4ce97d64d56eef90fe1e237a7 (tree) |
---|---|
l'heure | 2013-08-09 17:32:12 |
Auteur | Hiroaki Nakano <nakano.hiroaki@nttc...> |
Commiter | Hiroaki Nakano |
-F/--forwarded-for オプションを指定すると、Option Errorに
なる不具合の対処
Signed-off-by: Hiroaki Nakano <nakano.hiroaki@nttcom.co.jp>
Confirmed-by: Kenji Takeda <kenji.takeda@nttcom.co.jp>
@@ -446,6 +446,11 @@ protocol_module_base::check_message_result protocol_module_ip::check_parameter(c | ||
446 | 446 | break; |
447 | 447 | } |
448 | 448 | } |
449 | + //option string = "-F" | |
450 | + if (*it == "-F" || *it == "--forwarded-for") { | |
451 | + //set forward flag ON | |
452 | + continue; | |
453 | + } | |
449 | 454 | //option string = "-S" |
450 | 455 | else if (*it == "-S" || *it == "--sorry-uri") { |
451 | 456 | //set sorryURI flag OFF |
@@ -404,6 +404,11 @@ protocol_module_base::check_message_result protocol_module_sessionless::check_pa | ||
404 | 404 | vec_str_it it_end = args.end(); |
405 | 405 | //loop option strings |
406 | 406 | for (; it != it_end; ++it) { |
407 | + //option string = "-F" | |
408 | + if (*it == "-F" || *it == "--forwarded-for") { | |
409 | + //set forward flag ON | |
410 | + continue; | |
411 | + } | |
407 | 412 | //option string = "-S" |
408 | 413 | if (*it == "-S" || *it == "--sorry-uri") { |
409 | 414 | //set sorryURI flag OFF |