Skip to content

Commit

Permalink
add uuid on default m3u file
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre-Emmanuel Jacquier <15922119+pierre-emmanuelJ@users.noreply.github.com>
  • Loading branch information
pierre-emmanuelJ committed Jan 25, 2020
1 parent 719cf4b commit 4a1c32a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@ import (

"github.com/jamesnetherton/m3u"
"github.com/pierre-emmanuelJ/iptv-proxy/pkg/config"
uuid "github.com/satori/go.uuid"

"github.com/gin-contrib/cors"
"github.com/gin-gonic/gin"
)

const (
defaultProxyfiedM3UPath = "/tmp/iptv-proxy.m3u"
)
var defaultProxyfiedM3UPath = "/tmp/" + uuid.NewV4().String() + ".iptv-proxy.m3u"

// Config represent the server configuration
type Config struct {
Expand Down

0 comments on commit 4a1c32a

Please sign in to comment.