File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ public partial class InterfacePortForm : Form
1010{
1111 private readonly MainForm _parent ;
1212 private string _localIP ;
13-
13+
1414 public InterfacePortForm ( MainForm m )
1515 {
1616 InitializeComponent ( ) ;
@@ -22,16 +22,15 @@ public InterfacePortForm(MainForm m)
2222
2323 private string LoadNetworkInterfaces ( string selectedListenerIp )
2424 {
25- IPHostEntry host ;
2625 interfaceComboBox . Items . Clear ( ) ;
27- host = Dns . GetHostEntry ( Dns . GetHostName ( ) ) ;
26+ IPHostEntry host = Dns . GetHostEntry ( Dns . GetHostName ( ) ) ;
2827 foreach ( IPAddress ip in host . AddressList )
2928 {
3029 if ( ip . AddressFamily == AddressFamily . InterNetwork )
3130 interfaceComboBox . Items . Add ( ip . ToString ( ) ) ;
3231 }
3332
34- interfaceComboBox . Items . Add ( "0.0.0.0 " ) ;
33+ interfaceComboBox . Items . Add ( "localhost " ) ;
3534
3635 // select the last one by default to match the existing behavior
3736 if ( interfaceComboBox . Items . Count > 0 )
You can’t perform that action at this time.
0 commit comments