From 1f9a11e1bb600806690f555b4e601fc4b949a05d Mon Sep 17 00:00:00 2001 From: pivaldi Date: Sun, 26 Oct 2025 18:21:52 +0100 Subject: [PATCH] Use remote.origin.proxy config instead of torsocks. Fix "Not resolving .onion address (RFC 7686)". --- src/main.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index f5fbf8c..2dcdabf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,8 +10,9 @@ fn main() { let protocol = url.splitn(2, ':').collect::>()[0]; let remote_helper = "remote-".to_owned() + protocol; - Command::new("torsocks") - .arg("git") + Command::new("git") + .arg("-c") + .arg("remote.origin.proxy=socks5h://127.0.0.1:9050") .arg(&remote_helper) .args(args.iter().skip(1)) .spawn() @@ -46,7 +47,7 @@ fn main() { so you don't need to think about it again. You can use `git pull`, `git fetch`, etc. as you normally would. - Don't forget to have a tor daemon running and torsocks installed! + Don't forget to have a tor daemon running ! If you find a bug or need help please let me know. More docs and contact info are at https://agentofuser.com/git-remote-tor/.