{
	"displayname": "Server IP",
	"avatar_url": "mxc://maunium.net/vedMktLcoLibQzskbATZzjQd",
	"gay.fomx.biography": {
		"m.text": [{
			"mimetype": "text/html",
			"body": {{
				printf "<p>%s's outbound IP is <code>%s</code>. It connected with %s over %s.<p></p>User agent: <code>%s</code><br>Cipher suite: <code>%s</code><br>Host header: <code>%s</code><br>Randomness: <code>%s</code></p>"
				(.Req.Header.Get "Authorization" | regexFind `origin="?[^",]+"?` | trimPrefix `origin=` | trimPrefix `"` | trimSuffix `"`)
				.RemoteIP
				.Req.Proto
				(placeholder "http.request.tls.version" | upper)
				(.Req.Header.Get "User-Agent")
				(placeholder "http.request.tls.cipher_suite")
				(.Req.Host)
				(randAlphaNum 16)
				| toJson
			}}
		}]
	}
}
