-
Notifications
You must be signed in to change notification settings - Fork 34
Add support for default stratum split #137
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
base: master
Are you sure you want to change the base?
Conversation
Add support for default stratum split
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.
Seems like it would be better to just pass modname_len
as 0?
Also, this means the username mod stuff is always enabled... Probably should have a bool on |
Doesn't |
|
Ok, now I got it. I made the changes to skip the new logic if there is no default mod in the configuration. |
I've now modified the existing code to remove the caution above and pass a len of 0. |
The intention of this PR is to add support for a default stratum split. If no tilde is present in the stratum username,
one is automatically added at the end of the usernameit behaves as with a blank modname. If a blank modname exists in the configuration, it will then serve as the default stratum split.