Commit ce07067e authored by Loïck Bonniot's avatar Loïck Bonniot

[gui] Fix nil client local port

parent ffa43a31
Pipeline #954 failed with stage
......@@ -5,13 +5,11 @@ import (
"io/ioutil"
"path/filepath"
"github.com/spf13/viper"
"dfss/dfssc/common"
"dfss/dfssc/security"
"dfss/dfssp/api"
"dfss/net"
"github.com/spf13/viper"
"golang.org/x/net/context"
)
......
......@@ -3,13 +3,11 @@ package sign
import (
"io/ioutil"
"github.com/spf13/viper"
"dfss/dfssc/common"
"dfss/dfssc/security"
"dfss/dfssp/api"
"dfss/net"
"github.com/spf13/viper"
"golang.org/x/net/context"
)
......
......@@ -7,7 +7,6 @@ import (
cAPI "dfss/dfssc/api"
dAPI "dfss/dfssd/api"
pAPI "dfss/dfssp/api"
"golang.org/x/net/context"
)
......
......@@ -8,8 +8,6 @@ import (
"sync"
"time"
"github.com/spf13/viper"
"dfss"
cAPI "dfss/dfssc/api"
"dfss/dfssc/common"
......@@ -18,7 +16,7 @@ import (
pAPI "dfss/dfssp/api"
"dfss/dfssp/contract"
"dfss/net"
"github.com/spf13/viper"
"golang.org/x/net/context"
"google.golang.org/grpc"
)
......
......@@ -4,7 +4,6 @@ import (
"testing"
"dfss/dfssp/contract"
"github.com/stretchr/testify/assert"
)
......
......@@ -40,6 +40,7 @@ func Load() {
// Fill virtual-only fields
viper.Set("registered", isFileValid(viper.GetString("file_key")))
viper.Set("authenticated", isFileValid(viper.GetString("file_cert")))
viper.Set("local_port", 9005)
return
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment