-
-
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
Add proxy support #88
Comments
same here, from China mainland. |
I kind of have no idea how proxy works because I never had to use it. If anyone of you are experienced with proxy & flutter please share |
https://github.com/Sangwan5688/BlackHole/search?q=proxy&type=commits, but this is http proxy only, while many users would prefer a socks one |
Disclamer: I have no idea what I'm doing, I'm not familiar with flutter Package used: flutter_socks_proxy [MIT license] |
For Linux users, there is an option to run spotube using proxychains tool and it will tunnel the application through a custom proxy |
Sorry bro.. Forgot to add this feature request to Todo |
spotify has left my country, so im w8 so much for proxy support in spotube
its easy to implement proxy via http CONNECT https://en.wikipedia.org/wiki/HTTP_tunnel#HTTP_CONNECT_tunneling function http.proxyRequest(proxy, request)
connection = http.connect(proxy.host, proxy.port, proxy.tls)
connection.write("CONNECT", {
["Host"] = request.host,
["Proxy-Authorization"] = proxy.credentials
})
response = connection.read()
if response and response.code == 200 then
connection.host = request.host
connection.port = request.port
connection.tls = request.tls
connection.write(request.method, request.headers, request.body)
return connection.read()
else
retry with another proxy...
end
end |
hi |
I'd love to add this feature but I'm just not sure how to approach it. Looking for an expert on this topic for months :) |
I think this is no longer required/valid as Spotube now uses piped API which is accessible globally If the default server API ( |
It's available in nightly release |
login is not proxied |
Please allow using a custom Piped instance like how Libretube handles that. |
I have the 403 issue too, maybe you can make that the login instance opens in the default browser. Idk if it's possible but i think that it would solve the problem |
"login instance opens in the default browser" - yep this would allow to proxy browser http requests and pass the login stage, rn the application is just useless in countries where spotify left :( |
Or it will be great to give a choice between the in app browser and the cookie method (like in the pc version). |
same here, from Iran. |
I can't access github in my region, reading the online Piped Server Instance fails.😂 As well as I can build my own piped server, hopefully I can customize the input server address. |
Did you run: The nightly only contains changes from the dev branch, but my changes are in a completely different fork. |
Attached is the terminal output from building on Windows, getting a different error message now. How do I check out your changes? Sorry, kinda newbie here. |
Hi. I've cloned proxy-setting branch and built the Windows app.
The full log is log_2402271108.txt It seems that the proxy is not applied to every internet-related functions maybe. |
if set proxy related environment variables works, on macOS you can install https://github.com/hschmidt/EnvPane to set environment variables for all GUI apps |
Does setting these env vars actually works? If it works, I can add a Proxy section in the settings page that can be used to override these variables |
Same here, getting the 403 thing on android. An option to put the token manually would be nice. |
Indeed, it does. Here's my slightly edited desktop entry to launch with proxy.
|
please add proxy mode |
373544279-e7aa5341-b4c5-4612-b9e2-7a3efddc1a75.mp4 |
i do ethical hacking i might be able to help |
What is the state of the proxy feature now? |
There is no such option |
i had the same problem used tproxy in linux hope it helps |
but why is it in the "won't be possible" in board? |
I believe it's possible through http_proxy, https://stackoverflow.com/questions/65555508/use-http-proxy-in-flutter
Edit: It seems that it doesn't support https
|
it's not really needed when you run it locally |
try using proxychains on linux and for windows we might have to add it in app |
In my case, proxychains makes it able to access Spotify API, but the tracks themselves don't load. It's tricky, it seems I need to proxy the API, but not Youtube or Invidious. |
Is your feature request related to a problem? Please describe.
Since I can't connect to many platforms because of censorship, I always use the proxy settings; but IDK where to implement them here!
The text was updated successfully, but these errors were encountered: