-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: allow leading underscore in device name #1427
Conversation
…ds compatibility re device name validation.
List<String> args = '-a @daemon'.split(' '); | ||
await expectLater( | ||
() => SshnpdParams.fromArgs(args), | ||
await expectLater(() => SshnpdParams.fromArgs(args), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dart format
@@ -54,5 +54,5 @@ class DefaultSshnpdArgs { | |||
static const String deviceGroupName = '__none__'; | |||
static const String sshPublicKeyPermissions = ""; | |||
static const Duration policyHeartbeatFrequency = Duration(minutes: 5); | |||
static const String permitOpen ='localhost:22,localhost:3389'; | |||
static const String permitOpen = 'localhost:22,localhost:3389'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dart format
@@ -26,7 +26,7 @@ void main() { | |||
final p = await SshnpdParams.fromArgs(args); | |||
expect(p.deviceAtsign, '@daemon'); | |||
expect(p.policyManagerAtsign, '@policy'); | |||
expect(p.managerAtsigns, ['@bob','@chuck']); | |||
expect(p.managerAtsigns, ['@bob', '@chuck']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dart format
- What I did
fix: allow leading underscore in device name to preserve full backwards compatibility re device name validation.
- How I did it
- How to verify it
Tests pass
- Additional context
Follow-on from #1420