@@ -235,7 +235,7 @@ export default {
235235 fileName = url . searchParams . get ( 'SUB_NAME' ) || SUB_NAME || fileName ;
236236 botToken = url . searchParams . get ( 'TG_TOKEN' ) || TG_TOKEN || botToken ;
237237 chatID = url . searchParams . get ( 'TG_ID' ) || TG_ID || chatID ;
238- let protType = url . searchParams . get ( 'PROT_TYPE' ) ;
238+ let protType = url . searchParams . get ( 'PROT_TYPE' ) || atob ( atob ( protTypeBase64 ) ) ;
239239 if ( protType ) {
240240 protType = protType . toLowerCase ( ) ;
241241 }
@@ -271,7 +271,7 @@ export default {
271271 nat64Prefixs = await addIpText ( NAT64_PREFIX ) ;
272272 nat64Prefix = nat64Prefixs [ Math . floor ( Math . random ( ) * nat64Prefixs . length ) ] ;
273273 }
274- }
274+ }
275275
276276 // Unified protocol for handling subconverters
277277 const [ subProtocol , subConverterWithoutProtocol ] = ( subConverter . startsWith ( "http://" ) || subConverter . startsWith ( "https://" ) )
@@ -1324,7 +1324,8 @@ async function getchannelConfig(userID, host, userAgent, _url, protType, nat64,
13241324 if ( ! protType ) {
13251325 protType = atob ( atob ( protTypeBase64 ) ) ;
13261326 }
1327- const [ v2ray , clash ] = getConfigLink ( userID , host , host , port , host , protType , nat64 ) ;
1327+
1328+ const [ v2ray , clash ] = getConfigLink ( userID , host , host , port , host , proxyIP , protType , nat64 ) ;
13281329 return getHtmlResponse ( socks5Enable , userID , host , v2ray , clash ) ;
13291330 }
13301331
@@ -1801,7 +1802,7 @@ async function getSubscribeNode(userAgent, _url, host, fakeHostName, fakeUserID,
18011802 const responseBody2 = splitNodeData ( uniqueIpTxt , noTLS , fakeHostName , fakeUserID , userAgent , protType , nat64 , hostRemark ) ;
18021803 responseBody = [ responseBody1 , responseBody2 ] . join ( '\n' ) ;
18031804 } else {
1804- responseBody = splitNodeData ( uniqueIpTxt , noTLS , fakeHostName , fakeUserID , userAgent , protType , nat64 , hostRemark ) ;
1805+ responseBody = splitNodeData ( uniqueIpTxt , noTLS , fakeHostName , fakeUserID , userAgent , atob ( atob ( protTypeBase64 ) ) , nat64 , hostRemark ) ;
18051806 responseBody = [ responseBody ] . join ( '\n' ) ;
18061807 }
18071808 protType = atob ( atob ( protTypeBase64 ) ) ;
0 commit comments