public inbox for nncp-devel@lists.stargrave.org
Atom feed
* NNCP_SENDER environment for nncp-exec
@ 2025-12-13 23:36 Hadmut Danisch
2025-12-14 0:17 ` Hadmut Danisch
0 siblings, 1 reply; 2+ messages in thread
From: Hadmut Danisch @ 2025-12-13 23:36 UTC (permalink / raw)
To: nncp-devel
[-- Attachment #1: Type: text/plain, Size: 866 bytes --]
Hi,
when doing a nncp-exec, the target program at the receiver side is run
with environments like
echo My message |
NNCP_SELF=REMOTE \
NNCP_SENDER=OurNodeId \
NNCP_NICE=123 \
/usr/sbin/sendmail -t root@localhost
as described on your web page.
That NNCP_SENDER (and NNCP_SELF) is the hex id of the sender, which in
general is rather useless and a long random number.
Unfortunately, the neighbours are configured in the same file as the
secret keys, i.e. /etc/nncp.hjson (if not choosing to write things in a
big wood of separate files). So a target programm cannot (and should not
be able) to read this and thus cannot determine the label, the human
readable name of the sender node.
Would it be possible to pass the short names, that label used as a key
in the neigh-Hash, as additional variables?
regards
Hadmut
[-- Attachment #2: Type: text/html, Size: 2205 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-12-14 0:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-13 23:36 NNCP_SENDER environment for nncp-exec Hadmut Danisch
2025-12-14 0:17 ` Hadmut Danisch