-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
network: Fetch based browser networking #1061
Merged
Merged
Commits on Jul 15, 2024
-
network: Fetch based browser networking
Emulate a networking stack, intercept HTTP requests, serve them with fetch(). Enable by setting networking_proxy=fetch Somewhat fixes copy#198 Just enough networking for http to work for package managers and net-boot. The networking stack just reflects the macaddress of packets it receives, so shouldnt be bothered by mac address changes. Services include: - ARP replies by establishing the gateways IP - DHCP server sending gateway, dns, and client-ip - Gateway: 192.168.86.1 - Client: 192.168.86.100 - Netmask: 255.255.255.0 - UDP DNS server, all addresses resolve to: 192.168.87.1 - NTP Server, giving out the current time from Date() - Replies to ICMP pings to any IP address - UDP echo server on port 8 Limitations: - Request are limited by CORS rules, but CORS-proxies can work around this. - Redirects are handled transparently by fetch. The upside is sites that force an http->https upgrade appear to the VM to work over http. Future Work: - Allow HTTP requests from browser to be served by VM. - HTTPS support (maybe with help of a rust based TLS stack in WASM) - Support for POSTing binary data
Configuration menu - View commit details
-
Copy full SHA for 49db763 - Browse repository at this point
Copy the full SHA 49db763View commit details -
Configuration menu - View commit details
-
Copy full SHA for 10cf3ea - Browse repository at this point
Copy the full SHA 10cf3eaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 784d6ca - Browse repository at this point
Copy the full SHA 784d6caView commit details -
- Refactor HTTP Handling out TCP pump
- Add code to establishing TCP connection to VM - Cleanup
Configuration menu - View commit details
-
Copy full SHA for 90d90cc - Browse repository at this point
Copy the full SHA 90d90ccView commit details -
Configuration menu - View commit details
-
Copy full SHA for 692b9ad - Browse repository at this point
Copy the full SHA 692b9adView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4862da8 - Browse repository at this point
Copy the full SHA 4862da8View commit details
Commits on Jul 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d58a0b7 - Browse repository at this point
Copy the full SHA d58a0b7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f6546e - Browse repository at this point
Copy the full SHA 4f6546eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6518770 - Browse repository at this point
Copy the full SHA 6518770View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8df028f - Browse repository at this point
Copy the full SHA 8df028fView commit details
Commits on Jul 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 78de372 - Browse repository at this point
Copy the full SHA 78de372View commit details
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.