feat: add connectivity fix options + hardening

This commit is contained in:
fufsob committed 2026-09-29 03:14:24 +00:00
1 parent 364bed8d51
commit c8b9b3de46
41 files changed
+626 -111

No files matched your search

+9
View File
@@ -26,6 +26,15 @@ pkgs.buildGo126Module (finalAttrs: {
"headless/dion-joiner"
"headless/bitrix-joiner"
];
# The local proxy's password from the environment, not argv: a creator runs for good,
# and every local user reads its command line.
postPatch = ''
for p in vk telemost wbstream dion bitrix; do
substituteInPlace headless/$p/main.go --replace-fail \
'flag.String("upstream-pass", "",' \
'flag.String("upstream-pass", os.Getenv("WB_UPSTREAM_PASS"),'
done
'';
ldflags = [
"-s"
"-w"