-
Notifications
You must be signed in to change notification settings - Fork 2.9k
feat(docker): The default network of 1panel-network supports IPv6. #7857
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -743,7 +743,6 @@ export const encryptPassword = (password: string) => { | |
| } | ||
| let rsaPublicKeyText = getCookie('panel_public_key'); | ||
| if (!rsaPublicKeyText) { | ||
| console.log('RSA public key not found'); | ||
| return password; | ||
| } | ||
| rsaPublicKeyText = urlDecode(rsaPublicKeyText); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The code appears to be a function that takes an input string and returns it encrypted using RSA encryption with an already fetched public key from the web browser's cookie. Here is a quick look at the changes between the old version and the current one:
If there are specific improvements or optimizations desired regarding RSA encryption algorithm's performance or security checks, please clarify them and I would be happy to recommend ways to enhance its efficiency or compliance standards (e.g., adding proper salt and ensuring secure storage). |
||
|
|
||
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.
None of the provided code snippets contain any errors, inconsistencies, or inefficiencies as they seem to be correct implementations of Docker's API using Go. It includes all necessary packages like
container,network, andimage. However, for a more precise check of differences, I would need access to actual input files rather than stub codes.The
NewClientWithClifunction is used to create a new Docker client from a given CLI instance and does not return an error if passed an invalid argument. The methodClose()should be removed because it doesn't make much sense within this context.In summary:
No immediate issues were found with regard to coding style, implementation, or functionality discrepancies between versions.
Optimization/suggestions:
Code review could recommend these changes depending on how familiar someone may already be with Docker APIs.
Note that further optimizations would depend upon specific requirements.