-
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
Conversation
|
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
| var options network.ListOptions | ||
| options.Filters = filters.NewArgs(filters.Arg("name", name)) | ||
| networks, err := c.cli.NetworkList(context.Background(), options) | ||
| if err != nil { |
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, and image. However, for a more precise check of differences, I would need access to actual input files rather than stub codes.
The NewClientWithCli function 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 method Close() 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:
- The function names can improve readability for beginners looking at their own examples.
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.
| console.log('RSA public key not found'); | ||
| return password; | ||
| } | ||
| rsaPublicKeyText = urlDecode(rsaPublicKeyText); |
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.
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:
-
The original code snippet has been commented out (
export const encryptPassword = (password: string) => {). This should also be updated in this new release. -
There's no significant change, as most of the existing functionality does not depend on the presence/absence of
getCookie. It can still work even without checking cookies. -
However, it might suggest the removal of 'window' as it's being deprecated, so make sure you consider this before updating anything here.
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).
|
wanghe-fit2cloud
left a comment
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.
/lgtm
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: wanghe-fit2cloud The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |



No description provided.