mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2024-12-22 15:02:19 +00:00
Do not use file mode for SRT
This commit is contained in:
parent
97ac6f370d
commit
3f5d317250
@ -45,16 +45,12 @@ func splitHostPort(hostport string) (string, uint16) {
|
||||
|
||||
// Serve SRT server
|
||||
func Serve(cfg *Options, authBackend auth.Backend, forwardingChannel chan Packet) {
|
||||
// Start SRT in listen mode
|
||||
// Start SRT in listening mode
|
||||
log.Printf("SRT server listening on %s", cfg.ListenAddress)
|
||||
host, port := splitHostPort(cfg.ListenAddress)
|
||||
options := map[string]string{
|
||||
"transtype": "file",
|
||||
"mode": "listener",
|
||||
}
|
||||
sck := srtgo.NewSrtSocket(host, port, options)
|
||||
sck := srtgo.NewSrtSocket(host, port, nil)
|
||||
if err := sck.Listen(cfg.MaxClients); err != nil {
|
||||
log.Fatal("Unable to listen to SRT clients:", err)
|
||||
log.Fatal("Unable to listen for SRT clients:", err)
|
||||
}
|
||||
|
||||
// FIXME: Get the stream type
|
||||
|
Loading…
Reference in New Issue
Block a user