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

socks5 proxy is not supported in @tauri-apps/plugin-http #1992

Open
hooraygith opened this issue Nov 1, 2024 · 1 comment
Open

socks5 proxy is not supported in @tauri-apps/plugin-http #1992

hooraygith opened this issue Nov 1, 2024 · 1 comment
Labels
bug Something isn't working plugin: http

Comments

@hooraygith
Copy link

This is work:

import { fetch } from '@tauri-apps/plugin-http';

const response = await fetch('http://google.com', {
    method: 'GET',
    proxy: {
        all: 'http://127.0.0.1:1095'
    }
});
console.log(response.status);

this is not work:

import { fetch } from '@tauri-apps/plugin-http';

const response = await fetch('http://google.com', {
    method: 'GET',
    proxy: {
        all: 'socks5://127.0.0.1:1097'
    }
});
console.log(response.status);

Got error in network panel (ipc://localhost/plugin:http|fetch):

"builder error"

@hooraygith
Copy link
Author

socks5 is supported by reqwest

reqwest::Proxy::http("socks5://localhost:1080")?

@FabianLars FabianLars added the bug Something isn't working label Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working plugin: http
Projects
None yet
Development

No branches or pull requests

2 participants