-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.go
54 lines (47 loc) · 1.12 KB
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package main
import (
"os"
"github.com/jmattheis/website/dict"
"github.com/jmattheis/website/dns"
dockersocket "github.com/jmattheis/website/docker/socket"
"github.com/jmattheis/website/finger"
"github.com/jmattheis/website/ftp"
"github.com/jmattheis/website/gemini"
"github.com/jmattheis/website/gopher"
"github.com/jmattheis/website/http"
"github.com/jmattheis/website/imap"
"github.com/jmattheis/website/logger"
"github.com/jmattheis/website/pop"
"github.com/jmattheis/website/redis"
"github.com/jmattheis/website/ssh"
"github.com/jmattheis/website/telnet"
"github.com/jmattheis/website/tftp"
"github.com/jmattheis/website/util"
"github.com/jmattheis/website/whois"
"github.com/rs/zerolog"
)
func main() {
logger.Init(zerolog.DebugLevel)
ip := "127.0.0.1"
if os.Args[1] == "prod" {
ip = "78.47.104.216"
} else {
util.PortOffset = 10000
}
telnet.Listen()
whois.Listen()
dns.Listen()
ftp.Listen(ip)
ssh.Listen()
http.Listen()
pop.Listen()
imap.Listen()
dict.Listen()
gopher.Listen()
dockersocket.Listen()
gemini.Listen()
redis.Listen()
finger.Listen()
tftp.Listen()
<-make(chan struct{})
}