Commit Graph
13 Commits
Author SHA1 Message Date
MichilisandClaude Fable 5.1 3c2ccf8d83 Add the LNURLcash Telegram commands
/note, /notes (list and batch), /redeem and /lnurlmints with confirm
dialogs, group posting with private receipts, claim notifications,
batch export as PDF/JSON/CSV, and LNURLcash notes detected inside the
existing /lnurl, paste and QR-photo flows. Plain withdraw links behave
as before. Two /lnurl log lines no longer print k1.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-13 22:12:27 +00:00
lightningtipbotandMichilis 064f36889a Trust the bot's own LNURL and LNbits hosts in netguard
On nodes where the bot's public hostname resolves to loopback (hosts file,
split DNS), the public address check refused every payment to a lightning
address on the bot's own domain. The LNURL host and the LNbits host from
the config are now exempt from the check; literal internal addresses stay
refused.

Co-Authored-By: Claude Mythos 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Qy4RRoDyYEWTZWESFHp7dp
(cherry picked from commit ba6c6a36293adf000c495cc81fdd18ecc96a69f6)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-13 20:33:45 +00:00
Kevin RavensbergandMichilis 8d557f3043 Give every HTTP client its own transport
satdress.SetupHttpClient changes the TLS settings of the transport it gets from network.GetClient. With one shared transport that switched certificate checks off for all later LNURL requests.

(cherry picked from commit 864cc7b3e7d6b4cd9b57ae84b5d2646f8ba3177f)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-13 20:33:44 +00:00
Kevin RavensbergandMichilis 5ff6e841e1 Refuse non-public addresses in the LNURL HTTP client
The clients from network.GetClient fetch URLs that come from users and from remote LNURL servers. Without a proxy they now only connect to public addresses. The check runs at connect time on the resolved address, so it also covers redirects and hostnames that resolve to an internal address. With a SOCKS proxy, literal internal addresses and localhost names are refused.

(cherry picked from commit c3bcae870ec6018e8809d96f86b0d091ab124a5a)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-13 20:33:44 +00:00
gohumbleandGitHub d264650207 #432 return default http client for empty socks host configuration (#433) 2022-11-28 19:33:02 +01:00
gohumbleandGitHub a67ec62054 added isOnionRegex (#430) 2022-11-03 09:32:38 +01:00
gohumbleandGitHub 895fd06a14 added GetClientForScheme (#429) 2022-11-03 09:20:32 +01:00
gohumble f474988606 fix cfg 2022-08-14 22:44:04 +02:00
gohumble 865592b0a6 added ClientType 2022-08-14 22:04:04 +02:00
gohumble d9f2f87739 add socks5. unify client 2022-08-14 21:42:03 +02:00
1946a0e873 Satdress: Socks Proxy (2) (#348)
* 🚧 using socks

* socks proxy

* refactor http client

* remove comments

* remove comments

Co-authored-by: gohumble <lngohumble@gmail.com>
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2022-05-02 23:36:51 +02:00
LightningTipBotandGitHub fd531e6719 Revert "Satdress: Socks proxy (#346)" (#347)
This reverts commit 94ff302d15.
2022-05-02 23:28:51 +02:00
94ff302d15 Satdress: Socks proxy (#346)
* 🚧 using socks

* socks proxy

* refactor http client

* remove comments

* remove comments

Co-authored-by: gohumble <lngohumble@gmail.com>
2022-05-02 23:25:41 +02:00