Skip to content
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

Allow port numbers to be used in local host names. e.g. localhost:8888 #6448

Closed
wants to merge 1 commit into from

Conversation

aaron13100
Copy link
Contributor

allow ports to be used in host names. e.g. localhost:8888. Note: code copied from pull request 5318, #5318. I did not test this.

Background

There are scenarios where local development or specific server configurations require non-standard ports to be used in conjunction with hostnames such as localhost. The current implementation of check_local_file_access does not allow for URLs with such ports, making it inconvenient or impossible for developers and users to utilize the software in some local environments. This pull request updates the function to be more accommodating to such URLs, enhancing the tool's flexibility.

Changes 🏗️

Modified the check_local_file_access function in to accommodate URLs with ports in host names.
Removed redundant entries in the local_prefixes list.

PR Quality Scorecard ✨

  • Have you used the PR description template?   +2 pts
  • Is your pull request atomic, focusing on a single change?   +5 pts
  • Have you linked the GitHub issue(s) that this PR addresses?   +5 pts
  • Have you documented your changes clearly and comprehensively?   +5 pts
  • Have you changed or added a feature?   -4 pts
    • Have you added/updated corresponding documentation?   +4 pts
    • Have you added/updated corresponding integration tests?   +5 pts
  • Have you changed the behavior of AutoGPT?   -5 pts
    • Have you also run agbenchmark to verify that these changes do not regress performance?   +10 pts

allow ports to be used in host names. e.g. localhost:8888. 
Note: code copied from pull request 5318, Significant-Gravitas#5318.
I did not test this.
@aaron13100 aaron13100 changed the title Update web_selenium.py Allow port numbers to be used in local host names. e.g. localhost:8888 Nov 30, 2023
Copy link

netlify bot commented Nov 30, 2023

Deploy Preview for auto-gpt-docs ready!

Name Link
🔨 Latest commit 44ae3e5
🔍 Latest deploy log https://app.netlify.com/sites/auto-gpt-docs/deploys/65684cac2a64fe000899a9eb
😎 Deploy Preview https://deploy-preview-6448--auto-gpt-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions github-actions bot added the conflicts Automatically applied to PRs with merge conflicts label Dec 6, 2023
Copy link
Contributor

github-actions bot commented Dec 6, 2023

This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.

@aaron13100
Copy link
Contributor Author

This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.

I don't know how to see what the conflicts are. Let's just close the pull request instead.

@Pwuts Pwuts added the Forge label Mar 22, 2024
@Swiftyos Swiftyos closed this Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conflicts Automatically applied to PRs with merge conflicts Forge size/m
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants