@@ -62,7 +62,7 @@ export default {
6262 const userIDs = await 生成动态UUID ( 动态UUID ) ;
6363 userID = userIDs [ 0 ] ;
6464 userIDLow = userIDs [ 1 ] ;
65- }
65+ } else 动态UUID = userID ;
6666
6767 if ( ! userID ) {
6868 return new Response ( '请设置你的UUID变量,或尝试重试部署,检查变量是否生效?' , {
@@ -159,10 +159,10 @@ export default {
159159 if ( 路径 == '/' ) {
160160 if ( env . URL302 ) return Response . redirect ( env . URL302 , 302 ) ;
161161 else if ( env . URL ) return await 代理URL ( env . URL , url ) ;
162- else return new Response ( JSON . stringify ( request . cf , null , 4 ) , {
162+ else return new Response ( await nginx ( ) , {
163163 status : 200 ,
164164 headers : {
165- 'content-type ' : 'application/json ' ,
165+ 'Content-Type ' : 'text/html; charset=UTF-8 ' ,
166166 } ,
167167 } ) ;
168168 } else if ( 路径 == `/${ fakeUserID } ` ) {
@@ -2605,6 +2605,9 @@ async function bestIP(request, env, txt = 'ADD.txt') {
26052605 } else if ( ipSource === 'as24429' ) {
26062606 // AS24429列表
26072607 response = await fetch ( 'https://raw.githubusercontent.com/ipverse/asn-ip/master/as/24429/ipv4-aggregated.txt' ) ;
2608+ } else if ( ipSource === 'as35916' ) {
2609+ // AS35916列表
2610+ response = await fetch ( 'https://raw.githubusercontent.com/ipverse/asn-ip/master/as/35916/ipv4-aggregated.txt' ) ;
26082611 } else if ( ipSource === 'as199524' ) {
26092612 // AS199524列表
26102613 response = await fetch ( 'https://raw.githubusercontent.com/ipverse/asn-ip/master/as/199524/ipv4-aggregated.txt' ) ;
@@ -3322,6 +3325,7 @@ async function bestIP(request, env, txt = 'ADD.txt') {
33223325 <option value="official">CF官方列表</option>
33233326 <option value="cm">CM整理列表</option>
33243327 <option value="as13335">AS13335列表</option>
3328+ <option value="as35916">AS35916列表</option>
33253329 <option value="as209242">AS209242列表</option>
33263330 <option value="as24429">AS24429列表(Alibaba)</option>
33273331 <option value="as199524">AS199524列表(G-Core)</option>
@@ -3829,8 +3833,11 @@ async function bestIP(request, env, txt = 'ADD.txt') {
38293833 case 'as13335':
38303834 ipSourceName = 'CF全段';
38313835 break;
3836+ case 'as35916':
3837+ ipSourceName = 'CF非官方1';
3838+ break;
38323839 case 'as209242':
3833- ipSourceName = 'CF非官方 ';
3840+ ipSourceName = 'CF非官方2 ';
38343841 break;
38353842 case 'as24429':
38363843 ipSourceName = 'Alibaba';
@@ -4169,4 +4176,35 @@ async function getUsage(accountId, email, apikey, all = 100000) {
41694176 // 发生错误时返回默认值
41704177 return [ all , 0 , 0 , 0 ] ;
41714178 }
4179+ }
4180+
4181+ async function nginx ( ) {
4182+ const text = `
4183+ <!DOCTYPE html>
4184+ <html>
4185+ <head>
4186+ <title>Welcome to nginx!</title>
4187+ <style>
4188+ body {
4189+ width: 35em;
4190+ margin: 0 auto;
4191+ font-family: Tahoma, Verdana, Arial, sans-serif;
4192+ }
4193+ </style>
4194+ </head>
4195+ <body>
4196+ <h1>Welcome to nginx!</h1>
4197+ <p>If you see this page, the nginx web server is successfully installed and
4198+ working. Further configuration is required.</p>
4199+
4200+ <p>For online documentation and support please refer to
4201+ <a href="http://nginx.org/">nginx.org</a>.<br/>
4202+ Commercial support is available at
4203+ <a href="http://nginx.com/">nginx.com</a>.</p>
4204+
4205+ <p><em>Thank you for using nginx.</em></p>
4206+ </body>
4207+ </html>
4208+ `
4209+ return text ;
41724210}
0 commit comments