• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

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

Révisioneb37be3b252877d4ce97d64d56eef90fe1e237a7 (tree)
l'heure2013-08-09 17:32:12
AuteurHiroaki Nakano <nakano.hiroaki@nttc...>
CommiterHiroaki Nakano

Message de Log

-F/--forwarded-for オプションを指定すると、Option Errorに
なる不具合の対処

Signed-off-by: Hiroaki Nakano <nakano.hiroaki@nttcom.co.jp>
Confirmed-by: Kenji Takeda <kenji.takeda@nttcom.co.jp>

Change Summary

Modification

--- a/l7vsd/module/protocol/protocol_module_ip.cpp
+++ b/l7vsd/module/protocol/protocol_module_ip.cpp
@@ -446,6 +446,11 @@ protocol_module_base::check_message_result protocol_module_ip::check_parameter(c
446446 break;
447447 }
448448 }
449+ //option string = "-F"
450+ if (*it == "-F" || *it == "--forwarded-for") {
451+ //set forward flag ON
452+ continue;
453+ }
449454 //option string = "-S"
450455 else if (*it == "-S" || *it == "--sorry-uri") {
451456 //set sorryURI flag OFF
--- a/l7vsd/module/protocol/protocol_module_sessionless.cpp
+++ b/l7vsd/module/protocol/protocol_module_sessionless.cpp
@@ -404,6 +404,11 @@ 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"
408413 if (*it == "-S" || *it == "--sorry-uri") {
409414 //set sorryURI flag OFF