Skip to content

Commit 150562e

Browse files
committed
ux enhancements
1 parent 979d6b8 commit 150562e

File tree

6 files changed

+1289
-173
lines changed

6 files changed

+1289
-173
lines changed

lib/models/tunnel_config.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ class TunnelConfig {
55
final String sshUser;
66
final String sshHost;
77
final int localPort;
8+
final String localHost;
89
final String name;
910
bool isConnected;
1011

@@ -15,6 +16,7 @@ class TunnelConfig {
1516
required this.sshUser,
1617
required this.sshHost,
1718
required this.localPort,
19+
this.localHost = '127.0.0.1',
1820
required this.name,
1921
this.isConnected = false,
2022
});
@@ -27,6 +29,7 @@ class TunnelConfig {
2729
'sshUser': sshUser,
2830
'sshHost': sshHost,
2931
'localPort': localPort,
32+
'localHost': localHost,
3033
'name': name,
3134
'isConnected': isConnected,
3235
};
@@ -40,6 +43,7 @@ class TunnelConfig {
4043
sshUser: json['sshUser'] ?? '',
4144
sshHost: json['sshHost'] ?? '',
4245
localPort: json['localPort'] ?? 0,
46+
localHost: json['localHost'] ?? '127.0.0.1',
4347
name: json['name'] ?? '',
4448
isConnected: json['isConnected'] ?? false,
4549
);

0 commit comments

Comments
 (0)