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:
commit
da18ab2c25
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user