Comments (3)
Please try this patch (completely untested), and let me know if it does what you want.
diff --git a/webserver/webserver.go b/webserver/webserver.go
index 95642c5..9085c35 100644
--- a/webserver/webserver.go
+++ b/webserver/webserver.go
@@ -9,6 +9,7 @@ import (
"html"
"io"
"log"
+ "net"
"net/http"
"net/url"
"os"
@@ -72,12 +73,21 @@ func Serve(address string, dataDir string) error {
server.Store(s)
- var err error
+ proto := "tcp"
+ if strings.HasPrefix(address, "/") {
+ proto = "unix"
+ }
+
+ listener, err := net.Listen(proto, address)
+ if err != nil {
+ return err
+ }
+ defer listener.Close()
if !Insecure {
- err = s.ListenAndServeTLS("", "")
+ err = s.ServeTLS(listener, "", "")
} else {
- err = s.ListenAndServe()
+ err = s.Serve(listener)
}
if err == http.ErrServerClosed {
from galene.
It does exactly what I want, thanks!
from galene.
Fixed by dcb3706.
from galene.
Related Issues (20)
- how do i make im on linux mint btw HOT 1
- Option for High(er) Quality Audio HOT 8
- Sometimes not working on iOS HOT 7
- documentation typo ? HOT 1
- issue with recording HOT 2
- suggestion : prompt operator/presenter that the room is locked HOT 3
- Bitrate limitation ineffective on Firefox HOT 1
- Not being able to see others video/audio, revival HOT 6
- Menu disappears behind broadcasted files HOT 4
- Get rtptime.Jiffies is zero at a while HOT 1
- Recording issue with no usable tracks found HOT 5
- Test failure HOT 1
- Selective forwarding HOT 3
- galene 0.6 allows users to connect before /unlock HOT 2
- Commit 31ed146a959ec7602b82e8573abe540cba4461df breaks Galène behind Apache reverse-proxy HOT 7
- Changes required for FreeBSD compatibility HOT 1
- JWT token authentication fails HOT 6
- Galene Yunohost Update 0.6.2 Affects Group Links HOT 9
- Allow to prefill username/password through URL param HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from galene.