multicast/broadcast support
This commit is contained in:
@ -27,7 +27,7 @@ class _ProjectDialogState extends State<ProjectDialog> {
|
||||
super.initState();
|
||||
_nameController = TextEditingController(text: widget.project?.name ?? '');
|
||||
_ipController = TextEditingController(
|
||||
text: widget.project?.ipAddress ?? '127.0.0.1',
|
||||
text: widget.project?.ipAddresses.firstOrNull ?? '127.0.0.1',
|
||||
);
|
||||
_portController = TextEditingController(
|
||||
text: widget.project?.port.toString() ?? '8888',
|
||||
@ -47,7 +47,8 @@ class _ProjectDialogState extends State<ProjectDialog> {
|
||||
final project = Project(
|
||||
id: widget.project?.id ?? DateTime.now().millisecondsSinceEpoch.toString(),
|
||||
name: _nameController.text.trim(),
|
||||
ipAddress: _ipController.text.trim(),
|
||||
ipAddresses: [_ipController.text.trim()],
|
||||
isBroadcast: false,
|
||||
port: int.parse(_portController.text),
|
||||
packages: widget.project?.packages ?? [],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user