This commit is contained in:
parent
2e65a2938c
commit
9f0a51b9e5
1 changed files with 5 additions and 1 deletions
|
@ -25,7 +25,11 @@ fn get_security(config: Config, info: ConnectionInfo) -> String {
|
||||||
let data = SecurityTemplate {
|
let data = SecurityTemplate {
|
||||||
contact: config.mail.unwrap_or_default(),
|
contact: config.mail.unwrap_or_default(),
|
||||||
pref_lang: config.lang.unwrap_or_default(),
|
pref_lang: config.lang.unwrap_or_default(),
|
||||||
url: format!("{}/.well-known/security.txt", info.host()),
|
url: format!(
|
||||||
|
"{}://{}/.well-known/security.txt",
|
||||||
|
info.scheme(),
|
||||||
|
info.host()
|
||||||
|
),
|
||||||
};
|
};
|
||||||
|
|
||||||
data.render().unwrap()
|
data.render().unwrap()
|
||||||
|
|
Loading…
Reference in a new issue