UltraMonkey-L7 V3(multi-thread implementation)
リビジョン | 275464d4414fd96a9d41b41817458ffeaa58a071 (tree) |
---|---|
日時 | 2013-08-28 17:34:14 |
作者 | Hiroaki Nakano <nakano.hiroaki@nttc...> |
コミッター | Hiroaki Nakano |
Merge branch 'v3.1.0-devel'
@@ -446,6 +446,12 @@ protocol_module_base::check_message_result protocol_module_ip::check_parameter(c | ||
446 | 446 | break; |
447 | 447 | } |
448 | 448 | } |
449 | + //option string = "-F" | |
450 | + else if (*it == "-F" || *it == "--forwarded-for") { | |
451 | + //set forward flag ON | |
452 | + ++it; | |
453 | + continue; | |
454 | + } | |
449 | 455 | //option string = "-S" |
450 | 456 | else if (*it == "-S" || *it == "--sorry-uri") { |
451 | 457 | //set sorryURI flag OFF |
@@ -404,8 +404,13 @@ 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 | - if (*it == "-S" || *it == "--sorry-uri") { | |
413 | + else if (*it == "-S" || *it == "--sorry-uri") { | |
409 | 414 | //set sorryURI flag OFF |
410 | 415 | if (!sorryuri_checked) { |
411 | 416 | //next item exist |