Commit graph

7 commits

Author SHA1 Message Date
Sean DuBois
598eea73e3 Revert "Updating file path location search for config.json"
This reverts commit c5a2d036d7.

This commit was reverted since it breaks 'go run *.go', I plan on
bringing back custom config.json location with a switch instead.
2014-07-04 13:22:48 +00:00
Phillip Moore
c5a2d036d7 Updating file path location search for config.json
Instead of looking for config.json form current directory when running the program, look for the config.json from the executable running directory.  This will allow for calling fail2rest executable from a service w/o getting the "failed to open config: config.json" error.
2014-07-03 21:25:40 +00:00
Sean DuBois
3b85ffd1fc Print return value when starting HTTP handler for better error display 2014-06-27 14:10:35 +00:00
Sean DuBois
6ac04f33cf fail2go pkg renamed Fail2goConn -> Conn so fully qualified name would just read fail2go.Conn 2014-06-27 06:58:35 +00:00
Sean DuBois
b46fd86c8a Add ErrorBody struct so all errors will have the same JSON format. If a failregex is malformed send a 400 error code with the fail message 2014-06-23 06:53:42 +00:00
Sean DuBois
c9ba89e725 Fail2bansocket location is now a configuration option, refactor project since fail2go does method dispatch off of Fail2goConn struct 2014-06-18 05:53:54 +00:00
Sean DuBois
405d61e729 Move fail2ban socket communication into its own project called fail2go 2014-06-16 03:38:10 +00:00
Renamed from main.go (Browse further)