|
|
@@ -60,6 +60,7 @@ DO_CONFIG(config_verbatim);
|
|
|
DO_CONFIG(config_verbatimchar);
|
|
|
DO_CONFIG(config_verbose);
|
|
|
DO_CONFIG(config_wordwrap);
|
|
|
+DO_CONFIG(config_iac_ga);
|
|
|
|
|
|
typedef struct session *CONFIG (struct session *ses, char *arg1, char *arg2, int index);
|
|
|
|
|
|
@@ -304,6 +305,12 @@ struct config_type config_table[] =
|
|
|
config_wordwrap
|
|
|
},
|
|
|
|
|
|
+ {
|
|
|
+ "IAC GA",
|
|
|
+ "Don't strip IAC GA from server output",
|
|
|
+ "Strip IAC GA from server output",
|
|
|
+ config_iac_ga
|
|
|
+ },
|
|
|
|
|
|
{
|
|
|
"",
|
|
|
@@ -1345,3 +1352,27 @@ DO_CONFIG(config_wordwrap)
|
|
|
|
|
|
return ses;
|
|
|
}
|
|
|
+
|
|
|
+DO_CONFIG(config_iac_ga)
|
|
|
+{
|
|
|
+ if (*arg2)
|
|
|
+ {
|
|
|
+ if (is_abbrev(arg2, "ON"))
|
|
|
+ {
|
|
|
+ SET_BIT(ses->config_flags, CONFIG_FLAG_IAC_GA);
|
|
|
+ }
|
|
|
+ else if (is_abbrev(arg2, "OFF"))
|
|
|
+ {
|
|
|
+ DEL_BIT(ses->config_flags, CONFIG_FLAG_IAC_GA);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ show_error(ses, LIST_CONFIG, "#SYNTAX: #CONFIG {%s} <ON|OFF>", config_table[index].name);
|
|
|
+
|
|
|
+ return NULL;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ strcpy(arg2, HAS_BIT(ses->config_flags, CONFIG_FLAG_IAC_GA) ? "ON" : "OFF");
|
|
|
+
|
|
|
+ return ses;
|
|
|
+}
|