mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
fix: no-pwd WOL
This commit is contained in:
@@ -28,7 +28,9 @@ final class WakeOnLanCfg {
|
||||
? InternetAddressType.IPv6
|
||||
: InternetAddressType.IPv4,
|
||||
);
|
||||
final pwdValidation = SecureONPassword.validate(pwd);
|
||||
final pwdValidation = pwd != null
|
||||
? SecureONPassword.validate(pwd)
|
||||
: (state: true, error: null);
|
||||
|
||||
final valid =
|
||||
macValidation.state && ipValidation.state && pwdValidation.state;
|
||||
|
||||
Reference in New Issue
Block a user