mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-09-17 10:16:57 +00:00
rename listener package to internal/server
This commit is contained in:
parent
93c3f6f672
commit
2a6c36bba5
9 changed files with 346 additions and 284 deletions
|
@ -2,7 +2,7 @@ package main // import "bitbucket.org/stendec/frankerfacez/socketserver/cmd/sock
|
|||
|
||||
import (
|
||||
"flag"
|
||||
"../../listener"
|
||||
"../../internal/server"
|
||||
"log"
|
||||
"net/http"
|
||||
)
|
||||
|
@ -25,15 +25,15 @@ func main() {
|
|||
log.Fatalln("Either both --crt and --key can be provided, or neither.")
|
||||
}
|
||||
|
||||
conf := &listener.Config {
|
||||
conf := &server.Config {
|
||||
SSLKeyFile: *privateKeyFile,
|
||||
SSLCertificateFile: *certificateFile,
|
||||
UseSSL: *certificateFile != "",
|
||||
|
||||
Origin: *origin,
|
||||
SocketOrigin: *origin,
|
||||
}
|
||||
|
||||
listener.SetupServerAndHandle(conf)
|
||||
server.SetupServerAndHandle(conf)
|
||||
|
||||
var err error
|
||||
if conf.UseSSL {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue