summaryrefslogtreecommitdiffstats
path: root/gateway/router.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-11-24 22:36:19 +0100
committerWim <wim@42.be>2017-11-24 22:36:19 +0100
commit1efe40add50a76b7a0ad95187f6034cc75845d16 (patch)
tree4a60722020653386e62a591ebc6b05d25622a865 /gateway/router.go
parentcbd73ee313df8d4e590835e451200e7bff24473f (diff)
downloadmatterbridge-msglm-1efe40add50a76b7a0ad95187f6034cc75845d16.tar.gz
matterbridge-msglm-1efe40add50a76b7a0ad95187f6034cc75845d16.tar.bz2
matterbridge-msglm-1efe40add50a76b7a0ad95187f6034cc75845d16.zip
Add initial support for an external mediaserver. #278
Add 2 extra options `MediaServerUpload` and `MediaServerDownload`, where the URL for upload and download can be specified. See https://github.com/42wim/matterbridge/wiki/Mediaserver-setup-%5Badvanced%5D for an example with caddy
Diffstat (limited to 'gateway/router.go')
-rw-r--r--gateway/router.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/gateway/router.go b/gateway/router.go
index 28f81335..192fa9a3 100644
--- a/gateway/router.go
+++ b/gateway/router.go
@@ -99,6 +99,7 @@ func (r *Router) handleReceive() {
if !gw.ignoreMessage(&msg) {
msg.Timestamp = time.Now()
gw.modifyMessage(&msg)
+ gw.handleFiles(&msg)
for _, br := range gw.Bridges {
msgIDs = append(msgIDs, gw.handleMessage(msg, br)...)
}