mirror of
https://github.com/cuigh/swirl
synced 2024-12-27 22:32:49 +00:00
Fix port mapping when multiple protocols are enabled
This commit is contained in:
parent
ce196dd274
commit
e9d1ad449c
@ -1,6 +1,7 @@
|
||||
FROM golang:alpine AS build
|
||||
WORKDIR /go/src/github.com/cuigh/swirl/
|
||||
ADD . .
|
||||
ENV GO111MODULE on
|
||||
RUN CGO_ENABLED=0 go build -ldflags "-s -w"
|
||||
|
||||
FROM alpine:3.8
|
||||
|
@ -2446,8 +2446,9 @@ var Swirl;
|
||||
<td>
|
||||
<div class="select is-small">
|
||||
<select name="endpoint.ports[${this.index}].protocol">
|
||||
<option value="false">TCP</option>
|
||||
<option value="true">UDP</option>
|
||||
<option value="tcp">TCP</option>
|
||||
<option value="udp">UDP</option>
|
||||
<option value="sctp">SCTP</option>
|
||||
</select>
|
||||
</div>
|
||||
</td>
|
||||
|
File diff suppressed because one or more lines are too long
@ -81,8 +81,9 @@ namespace Swirl.Service {
|
||||
<td>
|
||||
<div class="select is-small">
|
||||
<select name="endpoint.ports[${this.index}].protocol">
|
||||
<option value="false">TCP</option>
|
||||
<option value="true">UDP</option>
|
||||
<option value="tcp">TCP</option>
|
||||
<option value="udp">UDP</option>
|
||||
<option value="sctp">SCTP</option>
|
||||
</select>
|
||||
</div>
|
||||
</td>
|
||||
|
4
main.go
4
main.go
@ -1,7 +1,6 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/pkg/errors"
|
||||
"net/http"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
@ -11,6 +10,7 @@ import (
|
||||
_ "github.com/cuigh/auxo/cache/memory"
|
||||
"github.com/cuigh/auxo/config"
|
||||
"github.com/cuigh/auxo/data/valid"
|
||||
"github.com/cuigh/auxo/errors"
|
||||
"github.com/cuigh/auxo/net/web"
|
||||
"github.com/cuigh/auxo/net/web/filter"
|
||||
"github.com/cuigh/auxo/net/web/filter/auth"
|
||||
@ -27,7 +27,7 @@ func main() {
|
||||
misc.BindOptions()
|
||||
|
||||
app.Name = "Swirl"
|
||||
app.Version = "0.8.3"
|
||||
app.Version = "0.8.4"
|
||||
app.Desc = "A web management UI for Docker, focused on swarm cluster"
|
||||
app.Action = func(ctx *app.Context) error {
|
||||
err := config.UnmarshalOption("swirl", &misc.Options)
|
||||
|
Loading…
Reference in New Issue
Block a user