fix(server): Improve file detection

This commit is contained in:
Myzel394 2024-10-17 20:21:07 +02:00
parent 1bb7956d75
commit 073cc00453
No known key found for this signature in database
GPG Key ID: ED20A1D1D423AF3F

View File

@ -120,14 +120,20 @@ func DetectLanguage(
fallthrough
case "file:///etc/ssh/ssh_config":
return LanguageSSHDConfig, nil
case "file:///etc/fstab":
return LanguageFstab, nil
// Darwin
case "file:///private/etc/hosts":
fallthrough
case "file:///etc/hosts":
return LanguageHosts, nil
case "file:///etc/aliases":
fallthrough
// Darwin
case "file:///private/etc/aliases":
fallthrough
case "file:///etc/aliases":
return LanguageAliases, nil
}