Skip to content

Commit d32c857

Browse files
committed
v0.4.3: expose multi-script-ID support in the UI
The backend already supported a comma-separated list of Apps Script IDs with round-robin dispatch and automatic 10-minute sidelining on quota errors (429 / 403 / 'quota' in body). But the UI label just said 'Apps Script ID' (singular), so users didn't realize multiple IDs are allowed. - Rename the label to 'Apps Script ID(s)' - Hover tooltip explaining comma-separated input and quota auto-failover - Placeholder hint 'id1, id2, id3 …' - Live count line under the field when 2+ IDs are entered Requested by a user in Farsi: 'add the ability to set multiple script IDs; switch to the next when one hits its limit'. The feature existed, this just surfaces it.
1 parent ea228d6 commit d32c857

4 files changed

Lines changed: 21 additions & 3 deletions

File tree

‎Cargo.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mhrv-rs"
3-
version = "0.4.2"
3+
version = "0.4.3"
44
edition = "2021"
55
description = "Rust port of MasterHttpRelayVPN -- DPI bypass via Google Apps Script relay with domain fronting"
66
license = "MIT"

‎SCR-20260421-tltm.png‎

61.1 KB
Loading

‎src/bin/ui.rs‎

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,11 +291,29 @@ impl eframe::App for App {
291291
.num_columns(2)
292292
.spacing([10.0, 6.0])
293293
.show(ui, |ui| {
294-
ui.label("Apps Script ID");
294+
ui.label("Apps Script ID(s)")
295+
.on_hover_text(
296+
"One deployment ID, or several separated by commas.\n\
297+
With multiple IDs the proxy round-robins between them and\n\
298+
automatically sidelines any ID that hits its daily quota (429)\n\
299+
or other rate limits for 10 minutes before retrying it."
300+
);
295301
ui.add(egui::TextEdit::singleline(&mut self.form.script_id)
302+
.hint_text("id1, id2, id3 …")
296303
.desired_width(f32::INFINITY));
297304
ui.end_row();
298305

306+
let id_count = self.form.script_id
307+
.split(',')
308+
.map(|s| s.trim())
309+
.filter(|s| !s.is_empty())
310+
.count();
311+
if id_count > 1 {
312+
ui.label("");
313+
ui.small(format!("{} IDs — round-robin with auto-failover on quota", id_count));
314+
ui.end_row();
315+
}
316+
299317
ui.label("Auth key");
300318
ui.horizontal(|ui| {
301319
let te = egui::TextEdit::singleline(&mut self.form.auth_key)

0 commit comments

Comments
 (0)