]> git.ipfire.org Git - thirdparty/tor.git/commit
save PT bridge lines to disk
authordzwdz <not@dzwdz.net>
Sun, 24 Aug 2025 18:25:08 +0000 (20:25 +0200)
committerdzwdz <not@dzwdz.net>
Sun, 24 Aug 2025 18:53:15 +0000 (20:53 +0200)
commit892dc508dbbbcacf583eb879325c97f36d468c99
tree45fe8ae00a3c549c02ec6a4c3d1b86f76131607a
parente09c024c33d602ee363b8cb42f6a6a0cf4174932
save PT bridge lines to disk

Solves https://gitlab.torproject.org/tpo/core/tor/-/issues/29128.

pt_update_bridge_lines() was based on pt_get_extra_info_descriptor_string().
In particular, I copied the behaviour of not printing IPv6 addresses if IPv4 is
present.  I'll make both functions use IPv6 in another MR.

That function is called when the IP or key changes.  Sadly, I don't remember
how I decided from where exactly to call it (I wrote this ages ago), but it
seems fine?
changes/ticket29128 [new file with mode: 0644]
doc/man/tor.1.txt
src/app/config/resolve_addr.c
src/core/mainloop/mainloop.c
src/feature/client/transports.c
src/feature/client/transports.h
src/feature/relay/router.c