config: Remove erronous yaml entries

This commit is contained in:
Tom Wiesing 2023-03-08 12:25:32 +01:00
parent 7371cc2163
commit 840efd5c03
No known key found for this signature in database
8 changed files with 13 additions and 14 deletions

View file

@ -59,7 +59,7 @@ func (panel *UserPanel) sshRoute(ctx context.Context) http.Handler {
}
sc.Domain = panel.Config.HTTP.PrimaryDomain
sc.Port = panel.Config.Listen.AdvertisedSSHPort
sc.Port = panel.Config.Listen.SSHPort
// pick the first domain that the user has access to as an example
grants, err := panel.Dependencies.Policy.User(r.Context(), user.User.User)

View file

@ -82,7 +82,7 @@ func (ssh2 *SSH2) handleConnection(session ssh.Session) {
{"${SLUG}", slug},
{"${DOMAIN}", ssh2.Config.HTTP.PrimaryDomain},
{"${HOSTNAME}", slug + "." + ssh2.Config.HTTP.PrimaryDomain},
{"${PORT}", strconv.FormatUint(uint64(ssh2.Config.Listen.AdvertisedSSHPort), 10)},
{"${PORT}", strconv.FormatUint(uint64(ssh2.Config.Listen.SSHPort), 10)},
} {
banner = strings.ReplaceAll(banner, oldnew[0], oldnew[1])
}