• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

UltraMonkey-L7 V3(multi-thread implementation)


Commit MetaInfo

修訂275464d4414fd96a9d41b41817458ffeaa58a071 (tree)
時間2013-08-28 17:34:14
作者Hiroaki Nakano <nakano.hiroaki@nttc...>
CommiterHiroaki Nakano

Log Message

Merge branch 'v3.1.0-devel'

Change Summary

差異

--- 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