• R/O
  • HTTP
  • SSH
  • HTTPS

ultramonkey-l7-v3: コミット

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'

変更サマリ

差分

--- a/l7vsd/module/protocol/protocol_module_ip.cpp
+++ b/l7vsd/module/protocol/protocol_module_ip.cpp
@@ -446,6 +446,12 @@ protocol_module_base::check_message_result protocol_module_ip::check_parameter(c
446446 break;
447447 }
448448 }
449+ //option string = "-F"
450+ else if (*it == "-F" || *it == "--forwarded-for") {
451+ //set forward flag ON
452+ ++it;
453+ continue;
454+ }
449455 //option string = "-S"
450456 else if (*it == "-S" || *it == "--sorry-uri") {
451457 //set sorryURI flag OFF
--- a/l7vsd/module/protocol/protocol_module_sessionless.cpp
+++ b/l7vsd/module/protocol/protocol_module_sessionless.cpp
@@ -404,8 +404,13 @@ protocol_module_base::check_message_result protocol_module_sessionless::check_pa
404404 vec_str_it it_end = args.end();
405405 //loop option strings
406406 for (; it != it_end; ++it) {
407+ //option string = "-F"
408+ if (*it == "-F" || *it == "--forwarded-for") {
409+ //set forward flag ON
410+ continue;
411+ }
407412 //option string = "-S"
408- if (*it == "-S" || *it == "--sorry-uri") {
413+ else if (*it == "-S" || *it == "--sorry-uri") {
409414 //set sorryURI flag OFF
410415 if (!sorryuri_checked) {
411416 //next item exist
旧リポジトリブラウザで表示