Added chroot namespace to listener config printing (#23205)

This commit is contained in:
divyaac 2023-09-21 12:07:51 -07:00 committed by GitHub
parent 1996c186df
commit fe7f56b3a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -931,6 +931,10 @@ func (c *ServerCommand) InitListeners(config *server.Config, disableClustering b
}
props["max_request_duration"] = lnConfig.MaxRequestDuration.String()
if lnConfig.ChrootNamespace != "" {
props["chroot_namespace"] = lnConfig.ChrootNamespace
}
lns = append(lns, listenerutil.Listener{
Listener: ln,
Config: lnConfig,