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

超级代理deno版 #33

Closed
fangyuan99 opened this issue Jan 14, 2025 · 4 comments
Closed

超级代理deno版 #33

fangyuan99 opened this issue Jan 14, 2025 · 4 comments
Labels
enhancement New feature or request

Comments

@fangyuan99
Copy link

  • Your request 你想要啥

现在cf官方不允许使用代理,是否可以用
deno.dev 代替(gcp节点,比cf更快)

  • Can you just submit a PR? (can be empty) 您是否能自己动手,丰衣足食(人话:自己提交个PR)?(可选)

  • Additional context (can be empty) 你还要说啥(可选)

@1234567Yang 1234567Yang added the enhancement New feature or request label Jan 15, 2025
@1234567Yang
Copy link
Owner

我已经改好了,而且还和原来的代码不冲突。

Deno.serve((req: Request) => {
    const url = new URL(req.url);
    thisProxyServerUrlHttps = `${url.protocol}//${url.hostname}/`;
    thisProxyServerUrl_hostOnly = url.host;

    // Example handleRequest function usage
    return handleRequest(req);
});

把原先上面的代码给替换掉就能运行了。

image
说实话这个VPN不允许,但是Reverse proxy允许,界限就很模糊,那 假如 我用Chrome扩展强制每个请求重定向,到底算不算VPN呢?

@fangyuan99
Copy link
Author

我已经改好了,而且还和原来的代码不冲突。

Deno.serve((req: Request) => {
    const url = new URL(req.url);
    thisProxyServerUrlHttps = `${url.protocol}//${url.hostname}/`;
    thisProxyServerUrl_hostOnly = url.host;

    // Example handleRequest function usage
    return handleRequest(req);
});

把原先上面的代码给替换掉就能运行了。

image 说实话这个VPN不允许,但是Reverse proxy允许,界限就很模糊,那 假如 我用Chrome扩展强制每个请求重定向,到底算不算VPN呢?

他最后一条说的很模糊,类似服务,最终解释权在他

@1234567Yang
Copy link
Owner

OK我已经差不多添加完成了,也把您添加进了感谢名单,非常感谢您!
如果还有问题的话欢迎提出,没有的话我几天后会关闭Issue。

@fangyuan99
Copy link
Author

OK我已经差不多添加完成了,也把您添加进了感谢名单,非常感谢您! 如果还有问题的话欢迎提出,没有的话我几天后会关闭Issue。

非常好用的项目!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants