File tree Expand file tree Collapse file tree 11 files changed +29
-17
lines changed Expand file tree Collapse file tree 11 files changed +29
-17
lines changed Original file line number Diff line number Diff line change 4949 <ResourceBaseClass Value =" Form" />
5050 <UnitName Value =" Unit1" />
5151 <IsVisibleTab Value =" True" />
52- <TopLine Value =" 196" />
53- <CursorPos X =" 13" Y =" 217" />
54- <ComponentState Value =" 1" />
52+ <TopLine Value =" 144" />
53+ <CursorPos X =" 77" Y =" 147" />
5554 <UsageCount Value =" 40" />
5655 <Loaded Value =" True" />
5756 <LoadedDesigner Value =" True" />
7372 <UsageCount Value =" 35" />
7473 </Unit >
7574 </Units >
76- <JumpHistory HistoryIndex =" 4 " >
75+ <JumpHistory HistoryIndex =" 5 " >
7776 <Position >
7877 <Filename Value =" unit1.pas" />
7978 <Caret Column =" 13" />
9493 <Filename Value =" unit1.pas" />
9594 <Caret Line =" 199" Column =" 61" TopLine =" 181" />
9695 </Position >
96+ <Position >
97+ <Filename Value =" unit1.pas" />
98+ <Caret Column =" 13" />
99+ </Position >
97100 </JumpHistory >
98101 <RunParams >
99102 <FormatVersion Value =" 2" />
Original file line number Diff line number Diff line change 11object MainForm: TMainForm
22 Left = 287
3- Height = 189
3+ Height = 192
44 Top = 125
55 Width = 531
66 Caption = 'SShuttle-GUI'
7- ClientHeight = 189
7+ ClientHeight = 192
88 ClientWidth = 531
99 OnCreate = FormCreate
1010 OnShow = FormShow
@@ -134,7 +134,7 @@ object MainForm: TMainForm
134134 object StaticText1: TStaticText
135135 Left = 0
136136 Height = 20
137- Top = 169
137+ Top = 172
138138 Width = 531
139139 Align = alBottom
140140 BorderStyle = sbsSingle
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ procedure TMainForm.AutoStartBoxChange(Sender: TObject);
144144procedure TMainForm.FormShow (Sender: TObject);
145145begin
146146 // Высота/Ширина формы (Auto)
147- MainForm.Height := ClearBox.Top + ClearBox.Height + StaticText1.Height + 5 ;
147+ MainForm.Height := ClearBox.Top + ClearBox.Height + StaticText1.Height + 7 ;
148148 MainForm.Width := StartBtn.Left + StartBtn.Height + 25 ;
149149
150150 AutostartBox.Checked := CheckAutoStart;
@@ -214,6 +214,10 @@ procedure TMainForm.StartBtnClick(Sender: TObject);
214214 UserEdit.Text + ' @' + ServerEDit.Text + ' :' + PortEdit.Text +
215215 ' -x ' + ServerEDit.Text + ' :' + PortEdit.Text + ' 0/0 ' + Trim(Pars));
216216
217+ S.Add(' ' );
218+
219+ S.Add(' iptables -t nat -F' );
220+
217221 S.Add(' exit 0;' );
218222
219223 S.SaveToFile(' /etc/sshuttle-gui/connect.sh' );
Original file line number Diff line number Diff line change 11object MainForm: TMainForm
22 Left = 287
3- Height = 189
3+ Height = 192
44 Top = 125
55 Width = 531
66 Caption = 'SShuttle-GUI'
7- ClientHeight = 189
7+ ClientHeight = 192
88 ClientWidth = 531
99 OnCreate = FormCreate
1010 OnShow = FormShow
@@ -134,7 +134,7 @@ object MainForm: TMainForm
134134 object StaticText1: TStaticText
135135 Left = 0
136136 Height = 20
137- Top = 169
137+ Top = 172
138138 Width = 531
139139 Align = alBottom
140140 BorderStyle = sbsSingle
Original file line number Diff line number Diff line change 4949 <ResourceBaseClass Value =" Form" />
5050 <UnitName Value =" Unit1" />
5151 <IsVisibleTab Value =" True" />
52- <CursorPos X =" 13" />
52+ <TopLine Value =" 144" />
53+ <CursorPos X =" 77" Y =" 147" />
5354 <UsageCount Value =" 40" />
5455 <Loaded Value =" True" />
5556 <LoadedDesigner Value =" True" />
7172 <UsageCount Value =" 35" />
7273 </Unit >
7374 </Units >
74- <JumpHistory HistoryIndex =" 4 " >
75+ <JumpHistory HistoryIndex =" 5 " >
7576 <Position >
7677 <Filename Value =" unit1.pas" />
7778 <Caret Column =" 13" />
9293 <Filename Value =" unit1.pas" />
9394 <Caret Line =" 199" Column =" 61" TopLine =" 181" />
9495 </Position >
96+ <Position >
97+ <Filename Value =" unit1.pas" />
98+ <Caret Column =" 13" />
99+ </Position >
95100 </JumpHistory >
96101 <RunParams >
97102 <FormatVersion Value =" 2" />
Original file line number Diff line number Diff line change 11object MainForm: TMainForm
22 Left = 287
3- Height = 189
3+ Height = 192
44 Top = 125
55 Width = 531
66 Caption = 'SShuttle-GUI'
7- ClientHeight = 189
7+ ClientHeight = 192
88 ClientWidth = 531
99 OnCreate = FormCreate
1010 OnShow = FormShow
@@ -134,7 +134,7 @@ object MainForm: TMainForm
134134 object StaticText1: TStaticText
135135 Left = 0
136136 Height = 20
137- Top = 169
137+ Top = 172
138138 Width = 531
139139 Align = alBottom
140140 BorderStyle = sbsSingle
You can’t perform that action at this time.
0 commit comments