1
4
mirror of https://github.com/yunginnanet/HellPot synced 2024-06-30 01:30:53 +00:00

Merge branch 'main' into dependabot/go_modules/github.com/valyala/fasthttp-1.53.0

This commit is contained in:
kayos 2024-05-15 04:33:51 -07:00 committed by GitHub
commit da18ab2c25
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 5 deletions

@ -52,7 +52,7 @@ var (
// HTTPPort is defined via our toml configuration file. It is the port that HellPot listens on.
HTTPPort string
// HeaderName is defined via our toml configuration file. It is the HTTP Header containing the original IP of the client,
// in traditional reverse Proxy deplyoments.
// in traditional reverse Proxy deployments.
HeaderName string
// Paths are defined via our toml configuration file. These are the paths that HellPot will present for "robots.txt"

@ -20,10 +20,7 @@ var (
func prepLogDir() {
logDir = snek.GetString("logger.directory")
if !strings.HasSuffix(logDir, "/") {
logDir += "/"
}
if err := os.MkdirAll(logDir, os.ModePerm); err != nil {
if err := os.MkdirAll(logDir, 0750); err != nil {
println("cannot create log directory: " + logDir + "(" + err.Error() + ")")
os.Exit(1)
}