Enhanced detection of user's room in sophomorix-query#172
Open
xrm wants to merge 2 commits intolinuxmuster:bionicfrom
Open
Enhanced detection of user's room in sophomorix-query#172xrm wants to merge 2 commits intolinuxmuster:bionicfrom
xrm wants to merge 2 commits intolinuxmuster:bionicfrom
Conversation
|
Hi @xrm We apologize for the delay in reviewing your pull request. Unfortunately, the developer responsible for this has been unavailable for an extended period. However, we've addressed the situation by creating a fork to continue the process, and we'll be moving forward with the necessary steps to handle your contribution. Thank you for your patience and understanding. Best regards, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes that make it possible to ... :
The first option is used to block out any servers that open SMB connections on behalf of the user (for example Nextcloud servers) and that should be ignored when determining the user's room.
The second option can be used by the WebUI (PR will follow if/when this PR is accepted) to pass the user's IP address to the script. If a user has a SMB connection from that IP, it will be used for room detection, else it will be ignored.
Notes on the PR:
libnetaddr-ip-perl. If not, I'll happily adjust it./etc/linuxmuster/sophomorix/sophomorix-query.ignored_nets.txt. It is most likely better pratice to store this insophomorix_configbut I am unsure on how to add it there.Related links: https://ask.linuxmuster.net/t/konsole-aktueller-raum-durch-nextcloud-irritiert/10438/4
I am not sure if this is helpful at all as I am neither used to write Perl nor skilled in the LMN-coding style. I do hope it is, but sorry if not ...