Documentation
¶
Index ¶
Constants ¶
View Source
const ( AllowBigBlockOptionName = "allow-big-block" SoftBlockLimit = 1024 * 1024 // https://github.com/ipfs/kubo/issues/7421#issuecomment-910833499 )
Variables ¶
View Source
var AllowBigBlockOption cmds.Option
Functions ¶
func CheckCIDSize ¶
func CleanAndTrim ¶ added in v0.38.0
CleanAndTrim sanitizes untrusted strings from remote peers to prevent display issues across web UIs, terminals, and logs. It replaces control characters, format characters, and surrogates with U+FFFD (�), then enforces a maximum length of 128 runes.
This follows the libp2p identify specification and RFC 9839 guidance: replacing problematic code points is preferred over deletion as deletion is a known security risk.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.