|
@@ -162,6 +162,7 @@ void __fastcall TSessionData::Default()
|
|
|
FPuttyProtocol = L"";
|
|
|
TcpNoDelay = false;
|
|
|
SendBuf = DefaultSendBuf;
|
|
|
+ SourceAddress = L"";
|
|
|
SshSimple = true;
|
|
|
HostKey = L"";
|
|
|
FingerprintScan = false;
|
|
@@ -364,6 +365,7 @@ void __fastcall TSessionData::NonPersistant()
|
|
|
PROPERTY(TimeDifferenceAuto); \
|
|
|
PROPERTY(TcpNoDelay); \
|
|
|
PROPERTY(SendBuf); \
|
|
|
+ PROPERTY(SourceAddress); \
|
|
|
PROPERTY(SshSimple); \
|
|
|
PROPERTY(AuthKI); \
|
|
|
PROPERTY(AuthKIPassword); \
|
|
@@ -708,6 +710,7 @@ void __fastcall TSessionData::DoLoad(THierarchicalStorage * Storage, bool PuttyI
|
|
|
TcpNoDelay = Storage->ReadBool(L"TcpNoDelay", TcpNoDelay);
|
|
|
}
|
|
|
SendBuf = Storage->ReadInteger(L"SendBuf", Storage->ReadInteger("SshSendBuf", SendBuf));
|
|
|
+ SourceAddress = Storage->ReadString(L"SourceAddress", SourceAddress);
|
|
|
SshSimple = Storage->ReadBool(L"SshSimple", SshSimple);
|
|
|
|
|
|
ProxyMethod = (TProxyMethod)Storage->ReadInteger(L"ProxyMethod", ProxyMethod);
|
|
@@ -1074,6 +1077,7 @@ void __fastcall TSessionData::DoSave(THierarchicalStorage * Storage,
|
|
|
WRITE_DATA(Integer, InternalEditorEncoding);
|
|
|
WRITE_DATA(String, S3DefaultRegion);
|
|
|
WRITE_DATA(Integer, SendBuf);
|
|
|
+ WRITE_DATA(String, SourceAddress);
|
|
|
WRITE_DATA(Bool, SshSimple);
|
|
|
}
|
|
|
|
|
@@ -3623,6 +3627,11 @@ void __fastcall TSessionData::SetSendBuf(int value)
|
|
|
SET_SESSION_PROPERTY(SendBuf);
|
|
|
}
|
|
|
//---------------------------------------------------------------------
|
|
|
+void __fastcall TSessionData::SetSourceAddress(const UnicodeString & value)
|
|
|
+{
|
|
|
+ SET_SESSION_PROPERTY(SourceAddress);
|
|
|
+}
|
|
|
+//---------------------------------------------------------------------
|
|
|
void __fastcall TSessionData::SetSshSimple(bool value)
|
|
|
{
|
|
|
SET_SESSION_PROPERTY(SshSimple);
|