Justin Reichardt
c0cf2abdd7
Correctly finds certificate
...
Had a + instead of a , to seperate arguments in the Join function
So it would never find the crt
2023-03-06 19:20:48 -06:00
Justin Reichardt
ed9d23ceb9
Can now generate TLS certificates
...
They do not yet have the host information yet and are not accepted by anyone
making them very useless
2023-03-06 19:06:46 -06:00
Justin Reichardt
7c56c5d5c7
Manages handling fewer entries than cores safely
...
If the number of entries is fewer than the number of cores then it is being
assumed that you can run this on a single core.
2023-03-06 19:04:44 -06:00
Justin Reichardt
8bc1777b87
Removes duplicate entries using all cores
2023-03-06 19:04:44 -06:00
Justin Reichardt
16e28ee13a
Added removing whitelisted words to removing safewords
...
Again this is to assist with splitting the removing duplicates into multiple go routines
2023-03-06 19:04:44 -06:00
Justin Reichardt
8bb577ee5c
Seperated removing safewords and regular words
...
This will help when setting up for splitting the duplicate check into go routines
2023-03-06 19:04:44 -06:00
Justin Reichardt
deca6fcdec
Added helpful comments to hosts
2023-03-06 19:04:44 -06:00
Justin Reichardt
db065b2fb9
Added more useful help message
2023-03-06 19:04:44 -06:00
Justin Reichardt
0bec84b137
Added webserver flag for starting one
...
Later when the testing is done, the webserver will be enabled by default in the
config. This will allow the user to decide which mode they want to use.
2023-03-06 19:04:44 -06:00
Justin Reichardt
2a7cec0008
Added the webserver option to the config
...
This allows turning the web server on or off
2023-03-06 19:04:44 -06:00
Justin Reichardt
c3ff05c989
Cleaned up the cfg file
...
I did a bunch of convoluted things to achieve something simple
Also added some comments
2023-03-06 19:04:44 -06:00
Justin Reichardt
2ae0f15b82
serve now pulls config and config panics if it fails to create
...
Had to also add var to allow serve to pull certs
If it cannot manage the config it needs to exit, so it made more sense to add it
there then check every time it is called
2023-03-06 19:04:44 -06:00
Justin Reichardt
15ee33eb01
hosts now pulls the config itself
2023-03-06 19:04:44 -06:00
Justin Reichardt
83679a1033
Added sys to cfg
...
Creating a single cfg that can be passed around instead of several variables
2023-03-06 19:04:44 -06:00
Justin Reichardt
e1c576f2a1
Performed some cleanup
...
Mostly go formatting but a little creative spacing and comments
2023-03-06 19:04:44 -06:00
Justin Reichardt
77c020e434
Removed uneeded args from hosts.Update
2023-03-06 19:04:44 -06:00
Justin Reichardt
ba490c27d7
Split config and hosts into separate modules
...
This cleans up the main file to make things easier to work with
2023-03-06 19:04:44 -06:00
Justin Reichardt
75207c51df
Added a simple http server
...
This will later be used for serving false content
2023-03-06 19:04:44 -06:00
Justin Reichardt
e2eb14dbc8
Now detects the OS at compilation
...
Using build tags was a more elegant way of determining the OS. Hopefully making
less room for errors and easier configuration later
Also it is now a negligibly smaller binary
2023-03-06 19:04:44 -06:00
Justin Reichardt
ee0467375f
Removed Windows install instructions
...
I don't know what I was thinking, if it doesn't work then why did I include it...
2022-09-19 17:01:52 -05:00
Justin Reichardt
38f54c8cdb
Ignore the configre.go file when building
2022-06-17 14:58:15 -05:00
Justin Reichardt
544a8f1363
Removed extranious "/" in Makefile
2022-06-17 14:57:03 -05:00
Justin Reichardt
e58b208658
Edited the .gitignore to ignore the build files
...
This includes the output of dist
2022-06-17 14:55:28 -05:00
Justin Reichardt
4d37aab047
Forgot to add the default config file...
2022-06-13 22:08:23 -05:00
Justin Reichardt
d9e77e944c
Changed version and Readme and updated version to 0.2
2022-06-13 09:02:01 -05:00
Justin Reichardt
e5df9dd3ae
Moved the default cfg to a file
...
This allows for it to be edited in a single location, be able to be copied to
the share directory for easy recovery, and later be available at install when packaging
2022-06-13 00:56:43 -05:00
Justin Reichardt
51e487fccb
Edited the default config file to be 80 char or less per line
2022-06-13 00:32:23 -05:00
Justin Reichardt
5f1e68230c
Changed Other Commands to the more accurate Flags in the Readme
2022-06-13 00:23:56 -05:00
Justin Reichardt
f1a3554fac
Moved Install instructions to the top of README
...
Also noted that the Windows build will fail as of right now
2022-06-13 00:21:24 -05:00
Justin Reichardt
8290b34e24
Added instructions for running using Systemd
2022-06-13 00:18:04 -05:00
Justin Reichardt
8067fc048d
Added Systemctl daemon-reload to the install steps
2022-06-13 00:12:25 -05:00
Justin Reichardt
4995813b6e
Corrected sym link location for systemd files
...
They were missing a "/"
2022-06-13 00:11:02 -05:00
Justin Reichardt
a641b9cd96
Informs the user when the deamon will restart the process
2022-06-12 23:04:53 -05:00
Justin Reichardt
0f64262a92
Corrected mixed spaces and tabs in Readme
2022-06-12 22:44:55 -05:00
Justin Reichardt
765614c903
Fixed issue with Makefile creating Windows executable
...
Also update the readme to reflect the new changes
2022-06-12 22:37:46 -05:00
Justin Reichardt
dab9a932a2
Updated instructions for installing on Windows
2022-06-12 22:27:59 -05:00
Justin Reichardt
e5dd948b98
If a config file doesn't exist, create one
2022-06-12 22:07:52 -05:00
Justin Reichardt
09b6a4beb0
v0.1
2022-06-12 21:11:21 -05:00
Justin Reichardt
36ae1964ad
Added removetimestamp flag
...
This is useful for logging programs such as systemd to run the program without
having double timestamps. It also remove the GPL license information
Updated the Systemd service to use this
2022-06-12 21:09:06 -05:00
Justin Reichardt
dec121cb2d
Corrected systemd path location of config
2022-06-12 20:52:12 -05:00
Justin Reichardt
3859714729
Added needed .PHONY to Makefile
...
Was having issues with it saying it was already built after a change
2022-06-12 20:48:31 -05:00
Justin Reichardt
1c2888ab9f
When install check for systemd sym links before making them
2022-06-12 20:45:34 -05:00
Justin Reichardt
3f446fbaca
Do not display time if not in daemon mode
2022-06-12 20:45:11 -05:00
Justin Reichardt
7657dd985c
Added information about flags to the README
2022-06-12 20:37:39 -05:00
Justin Reichardt
0d063f31a2
Added version information to the program
...
--version flag shows version information
2022-06-12 20:30:03 -05:00
Justin Reichardt
ef5fddc323
Added the copyright notice to the program
2022-06-12 20:13:16 -05:00
Justin Reichardt
bef73dfbaf
Created a Makefile to build and install
...
Also updated the Readme with instructions
Added a version file so the version can be included in the build
2022-06-12 20:10:47 -05:00
Justin Reichardt
75f393d8bd
Checks for rhosts.cfg and parent directory
...
If the directory doesn't exist it tries to create it. If the config
doesn't exist it fails with a log error explaining.
2022-03-01 21:59:49 -06:00
Justin Reichardt
f7b781ea6e
Updated the readme to reflect current state
2022-03-01 21:59:02 -06:00
Justin Reichardt
2d19f1692d
Removed old placeholders
2022-03-01 13:23:42 -06:00