cargo fmt
This commit is contained in:
parent
4c45b85c98
commit
d0455611d5
@ -48,7 +48,9 @@ pub fn ensure_self_signed_cert() -> anyhow::Result<(PathBuf, PathBuf)> {
|
|||||||
if let Ok(extra) = std::env::var("SOCKTOP_AGENT_EXTRA_SANS") {
|
if let Ok(extra) = std::env::var("SOCKTOP_AGENT_EXTRA_SANS") {
|
||||||
for raw in extra.split(',') {
|
for raw in extra.split(',') {
|
||||||
let s = raw.trim();
|
let s = raw.trim();
|
||||||
if s.is_empty() { continue; }
|
if s.is_empty() {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if let Ok(ip) = s.parse::<IpAddr>() {
|
if let Ok(ip) = s.parse::<IpAddr>() {
|
||||||
params.subject_alt_names.push(SanType::IpAddress(ip));
|
params.subject_alt_names.push(SanType::IpAddress(ip));
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user