8000 wGET: use uclient-fetch by mochaaP · Pull Request #304 · immortalwrt/homeproxy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

wGET: use uclient-fetch #304

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

Closed
wants to merge 1 commit into from
Closed

Conversation

mochaaP
Copy link
@mochaaP mochaaP commented Apr 1, 2025

No description provided.

Signed-off-by: Zephyr Lykos <git@mochaa.ws>
@@ -9,7 +9,8 @@ LUCI_PKGARCH:=all
LUCI_DEPENDS:= \
+sing-box \
+firewall4 \
+kmod-nft-tproxy
+kmod-nft-tproxy \
+uclient-fetch
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the default package in OpenWrt.

@@ -81,7 +81,7 @@ export function wGET(url, ua) {
if (!ua)
ua = 'Wget/1.21 (HomeProxy, like v2rayN)';

const output = executeCommand(`/usr/bin/wget -qO- --user-agent ${shellQuote(ua)} --timeout=10 ${shellQuote(url)}`) || {};
const output = executeCommand(`/bin/uclient-fetch -qO- --user-agent ${shellQuote(ua)} --timeout=10 ${shellQuote(url)}`) || {};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This follows opkg behavior that make it possible to pick wget-ssl in case some users have broken libustream library.

@mochaaP mochaaP closed this Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0