mushorg / glutton

Generic Low Interaction Honeypot
MIT License
244 stars 56 forks source link

Set --var-dir on startup #134

Closed Jc2k closed 4 years ago

Jc2k commented 5 years ago

Reading the code, there is a setting for var-dir. But it looks like its only set from the config file after it is already read to do g.makeID()? I think right now it exists mostly for glutton_test.go, but it would be nice if there was a way to set it from conf.yml or cmd line etc.

glaslos commented 5 years ago

You can add it here as a flag: https://github.com/mushorg/glutton/blob/master/app/server.go#L56 so we don't need to set it here: https://github.com/mushorg/glutton/blob/master/glutton.go#L53