搭梯子,请 v 友推荐 vps(150 元/年以内)

342 天前
 Persimmon08
14821 次点击
所在节点    VPS
101 条回复
Gloppy
340 天前
难道只有我在用 vultr 的五刀一个月的 vps ?
Persimmon08
340 天前
@Gloppy 5 刀每月选择会多很多呀,digitalOcean 什么都以的
peterli427
339 天前
@nothing2

addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request))
})

async function handleRequest(request) {
const baseUrls = [
'https://pub-api-1.bianyuan.xyz',
'https://api.wcc.best',
'https://sub.id9.cc',
'https://sub.xeton.dev',
'https://api.dler.io',
'https://sub.maoxiongnet.com'
// 这些是订阅转换的后端,可以直接用,也可以添加自建的,也可以去网上找,代码逻辑是将每个订阅以此放进去,直到获取能用的节点信息
];
const urls = [
'https://jichang1.com/api/v1/client/subscribe?token=28614cc6481a7cec2a1d430a9409a6b4', //机场 1
'https://jichang2.com/api/v1/client/subscribe?token=28614cc6481a7cec2a1d430a9409a6b4', //机场 2
'https://jichang3.com/api/v1/client/subscribe?token=28614cc6481a7cec2a1d430a9409a6b4' //机场 3
// 这些是 vmess 订阅链接,也是按需添加
];

try {
let plainTextContent = '';
let firstContent = true; // Flag to track the first successful content

for (const url of urls) {
for (const baseUrl of baseUrls) {
const apiUrl = `${baseUrl}/sub?target=clash&url=${encodeURIComponent(url)}&insert=false&exclude=%E4%B8%B4%E6%97%B6&emoji=true&list=true&tfo=false&scv=true&fdn=false&sort=false&new_name=true`;

const response = await fetch(apiUrl);
if (response.ok) {
let content = await response.text();

// Check if the first line of content includes "proxies:"
const firstLine = content.split('\n')[0];
if (firstLine.includes('proxies:')) {
// Remove the first line if not the first successful content
if (!firstContent) {
content = content.replace(/^.*[\r\n]+/, '');
} else {
firstContent = false; // Set flag to false after capturing the first content
}
plainTextContent += `${content}\n`;
break;
}
}
}
}

// 这是所有节点都获取失败后的备用节点
if (!plainTextContent.trim()) {
plainTextContent = `proxies:\n` +
`- {name: 备用节点, server: abc.com, port: 80, type: vmess, uuid: 3b2b88bf-191a-4b94-a1f9-5r30a762fe7e, alterId: 0, cipher: auto, tls: false, skip-cert-verify: false, network: ws, ws-opts: {path: /qqadb}}`;
}

return new Response(plainTextContent, {
headers: {
'Content-Type': 'text/plain; charset=UTF-8',
},
});
} catch (error) {
return new Response('Error occurred: ' + error, { status: 500 });
}
}
nothing2
339 天前
@peterli427 多谢,不明觉厉😄
peterli427
339 天前
@nothing2 就直接新建一个 workers ,点击快速编辑,把上面的复制粘贴,保存,然后 workers 绑定自己的域名,访问这个域名,你就能得到你所有机场的订阅的合集了,用 clash 的 proxy provider 加载这个链接,就能获取所有的机场节点,支持自动更新;代码就是 gpt 免费版写的,逻辑就是,把你提供的订阅链接,依次放到不同的订阅转换里,相当于在订阅转换的网页勾选“只生成节点信息”,直到哪个订阅转换能成功获取节点,防止某个后端失效嘛,然后 cf 脚本继续处理,将所有结果合并成一个大的节点合集,就完事了,订阅转换后端去谷歌搜,一大堆
arfaWong
338 天前
@cqj0908 #66 ip 路由追踪
wu67
338 天前
@Gloppy aws 日本 新加坡 3.5 刀了解一下. 即使 5 月会开始升价到 5 刀, 但是质量仍然吊打 vultr 的 5 刀
Gloppy
338 天前
@wu67 aws 丢包率、延时多少呢? 我看了看正在用的 vultr 丢包 1.7%延时平均 379ms !重启一下 vps 可能会好一些。
wu67
338 天前
@Gloppy
26 packets transmitted, 26 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 87.359/100.466/116.653/8.491 ms
Gloppy
338 天前
@wu67 确实吊打,感谢分享。
chocolate518
334 天前
@wu67 我也是 aws lightsail 用户,一直体验不错,5 月变 5 刀有点贵了感觉 还有什么推荐吗
wu67
333 天前
@chocolate518 没,5 刀能打 aws 的真没看到,不知道甲骨文和 az 怎样,就这两没玩过
litguy
327 天前
@chocolate518 现在传闻静态 IP 加钱,有点没搞懂,我现在是 5 刀的 lightsail 试用,要增加多少 ?
chocolate518
327 天前
@litguy 5 刀是 5 月的价格啊,现在你用最便宜的机器应该是差不多 3.5 一个月,静态 ip 现在你绑定到主机上现在不收费,5 月 1 号之后要收费 所以变成 5 刀一个月了,而且试用我记得不是免费 3 个月么
litguy
327 天前
@chocolate518 我用的是 2TB/月的,不是 1TB/月的,后来发现自己一个月连 100G 都用不了,所以不知道是 3.5 USD 变成 5 USD ,5 USD 变成 6.5 USD ,还是要再增加 5 USD
chocolate518
326 天前
@litguy 官网有表格的能查 你换个套餐不就好了嘛 换成 3.5 的
Rrrrrr
322 天前
有这钱买梯子不爽,还不用 150 一年
rebecca554owen
307 天前
自建机场。
booooomzack666
284 天前
推荐个 BH 专线,以前叫蜂巢,亲测一年稳定延迟低
aHR0cHM6Ly9kcmVhbS5zc3RlYS5tZW4vIy9yZWdpc3Rlcj9jb2RlPVc3M1dtYzR4
woyaobaofu
144 天前
蜂鸟云,全中转机场,晚高峰 4K 无压力: https://蜂鸟云.xyz

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://tanronggui.xyz/t/1018427

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX