mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-04 20:30:35 +00:00
Fixed issue creating connection without port
This commit is contained in:
parent
bb3f155971
commit
7537dd885a
1 changed files with 2 additions and 2 deletions
|
@ -255,7 +255,7 @@ class _AddServerModalState extends State<AddServerModal> {
|
|||
name: nameController.text,
|
||||
connectionMethod: connectionType,
|
||||
domain: ipDomainController.text,
|
||||
port: int.parse(portController.text),
|
||||
port: portController.text != '' ? int.parse(portController.text) : null,
|
||||
user: userController.text,
|
||||
password: passwordController.text,
|
||||
defaultServer: defaultServer,
|
||||
|
@ -366,7 +366,7 @@ class _AddServerModalState extends State<AddServerModal> {
|
|||
name: nameController.text,
|
||||
connectionMethod: connectionType,
|
||||
domain: ipDomainController.text,
|
||||
port: int.parse(portController.text),
|
||||
port: portController.text != '' ? int.parse(portController.text) : null,
|
||||
user: userController.text,
|
||||
password: passwordController.text,
|
||||
defaultServer: defaultServer,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue