feat: (Needs redeploy Code.gs) enhance SNI pool management with latency probing and JSON handling improvements

This commit is contained in:
Abolfazl
2026-05-01 05:56:56 +03:30
parent 749a2bed81
commit 4ae0d115c5
2 changed files with 187 additions and 20 deletions
+6 -3
View File
@@ -1,6 +1,6 @@
/**
* MasterHttpRelay — Google Apps Script
*
*
* DEPLOYMENT:
* 1. Go to https://script.google.com → New project
* 2. Delete the default code, paste THIS entire file
@@ -181,7 +181,10 @@ function doGet(e) {
}
function _json(obj) {
return ContentService.createTextOutput(JSON.stringify(obj)).setMimeType(
ContentService.MimeType.JSON
// HtmlService responses can stay on script.google.com for /dev, while
// ContentService commonly bounces through script.googleusercontent.com.
// The Python client extracts the JSON payload from the body either way.
return HtmlService.createHtmlOutput(JSON.stringify(obj)).setXFrameOptionsMode(
HtmlService.XFrameOptionsMode.ALLOWALL
);
}