Added the copyright notice to the program
parent
bef73dfbaf
commit
ef5fddc323
|
|
@ -30,6 +30,7 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"flag"
|
"flag"
|
||||||
"time"
|
"time"
|
||||||
|
"fmt"
|
||||||
)
|
)
|
||||||
// siteList holds the location of all the sites along with a list of their location
|
// siteList holds the location of all the sites along with a list of their location
|
||||||
type siteList struct {
|
type siteList struct {
|
||||||
|
|
@ -42,6 +43,25 @@ type siteEntry struct {
|
||||||
site string
|
site string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const GPL =`
|
||||||
|
rhosts maintains a blocklist and appends it to the system hosts file
|
||||||
|
|
||||||
|
Copyright (C) 2021 Justin Reichardt
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
`
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
tmpdir := ""
|
tmpdir := ""
|
||||||
hostsloc := ""
|
hostsloc := ""
|
||||||
|
|
@ -50,6 +70,9 @@ func main() {
|
||||||
var interval int=1440
|
var interval int=1440
|
||||||
var siteBuff []siteList
|
var siteBuff []siteList
|
||||||
|
|
||||||
|
// GPL information
|
||||||
|
fmt.Println(GPL)
|
||||||
|
|
||||||
// Parsing Flags
|
// Parsing Flags
|
||||||
flag.BoolVar(&daemon, "d", false, "Should this be run in daemon mode")
|
flag.BoolVar(&daemon, "d", false, "Should this be run in daemon mode")
|
||||||
flag.IntVar(&interval, "t", 1440, "Minutes until next run of daemon")
|
flag.IntVar(&interval, "t", 1440, "Minutes until next run of daemon")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue