-
Notifications
You must be signed in to change notification settings - Fork 28
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
implement host redirection via in-app VPN or socket-filter #28
Comments
a basic socket-redirection approach: hmm, doesn't provide way to isolate to a specific WebKit-utilizing bundle name, could only attach redirector to all WebKit apps: https://stackoverflow.com/questions/35684211/how-to-identify-a-process-in-c-within-a-mac-network-kernel-extension-socket-fil |
I've come across this ticket - because I'm looking for a way to host a website completely offline using a HAR / http archive file. I think this may parallel the efforts of this ticket - because you could modify the payloads of captured har file and potentially hack things if need be in swift for more granularity. in one line of code you can pass a har file which allows you to swizzle / intercept http requests and modify payload of urls. related UPDATE |
build some VPN support in for doing ad-hoc redirection/filtering of specific hosts' WebView requests and/or their DNS resolutions
https://github.com/lshuzhi/SimpleTunnelMacos
https://github.com/liruqi/Mume-iOS
https://developer.apple.com/reference/networkextension/netunnelprovidermanager
Chrome does this with
--host-rules=MAP <src-pattern> <host:port>, EXCLUDE <pattern>
https://github.com/electron/electron/blob/master/docs/api/chrome-command-line-switches.md#--host-rulesrules
The text was updated successfully, but these errors were encountered: