mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-03 00:07:05 +00:00
fix issue where sshkeyscan fails when ipv6 is disabled for sshd
This commit is contained in:
parent
87d871a480
commit
547a75c25d
@ -493,7 +493,7 @@ def build_sshfp_records():
|
|||||||
pass
|
pass
|
||||||
break
|
break
|
||||||
|
|
||||||
keys = shell("check_output", ["ssh-keyscan", "-t", "rsa,dsa,ecdsa,ed25519", "-p", str(port), "localhost"])
|
keys = shell("check_output", ["ssh-keyscan", "-4", "-t", "rsa,dsa,ecdsa,ed25519", "-p", str(port), "localhost"])
|
||||||
keys = sorted(keys.split("\n"))
|
keys = sorted(keys.split("\n"))
|
||||||
|
|
||||||
for key in keys:
|
for key in keys:
|
||||||
|
Loading…
Reference in New Issue
Block a user