added more config options + reverse proxy for secure jellyfin servers (tryout) && connecting to JF server :)

This commit is contained in:
2024-02-15 00:18:03 +01:00
parent 9ca119e4df
commit 393f5db892
9 changed files with 175 additions and 24 deletions

22
main.go
View File

@@ -26,7 +26,7 @@ func main() {
// Default information store
JellyCAT = JcatDefaults{
Version: "0.1.2revC",
Version: "0.1.3revA",
Name: "JellyCAT Serving stHack",
HostName: config.CertName,
HostIP: config.HijackIP,
@@ -37,13 +37,21 @@ func main() {
fmt.Println(" JellyCAT", JellyCAT.Version)
fmt.Println()
// DNS Server & Resolver function for hijacking and forwarding DNS requests
fmt.Println("SYS-LOG: Attempting to start DNS Server...")
dnsResolver()
if config.DnsServEN {
// DNS Server & Resolver function for hijacking and forwarding DNS requests
fmt.Println("SYS-LOG: Attempting to start DNS Server...")
dnsResolver()
} else {
fmt.Println("SYS-LOG: DNS Server disabled ")
}
// Webserver for serving x and app to the ATV
fmt.Println("SYS-LOG: Attempting to start WEB Server...")
webServer()
if config.WebServEN {
// Webserver for serving x and app to the ATV
fmt.Println("SYS-LOG: Attempting to start WEB Server...")
webServer()
} else {
fmt.Println("SYS-LOG: WEB Server disabled ")
}
// App main for any other server-sided logic
fmt.Println("SYS-LOG: Attempting to start JellyCAT-Main...")