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 ( ...@@ -5,13 +5,11 @@ import (
"io/ioutil" "io/ioutil"
"path/filepath" "path/filepath"
"github.com/spf13/viper"
"dfss/dfssc/common" "dfss/dfssc/common"
"dfss/dfssc/security" "dfss/dfssc/security"
"dfss/dfssp/api" "dfss/dfssp/api"
"dfss/net" "dfss/net"
"github.com/spf13/viper"
"golang.org/x/net/context" "golang.org/x/net/context"
) )
......
...@@ -3,13 +3,11 @@ package sign ...@@ -3,13 +3,11 @@ package sign
import ( import (
"io/ioutil" "io/ioutil"
"github.com/spf13/viper"
"dfss/dfssc/common" "dfss/dfssc/common"
"dfss/dfssc/security" "dfss/dfssc/security"
"dfss/dfssp/api" "dfss/dfssp/api"
"dfss/net" "dfss/net"
"github.com/spf13/viper"
"golang.org/x/net/context" "golang.org/x/net/context"
) )
......
...@@ -7,7 +7,6 @@ import ( ...@@ -7,7 +7,6 @@ import (
cAPI "dfss/dfssc/api" cAPI "dfss/dfssc/api"
dAPI "dfss/dfssd/api" dAPI "dfss/dfssd/api"
pAPI "dfss/dfssp/api" pAPI "dfss/dfssp/api"
"golang.org/x/net/context" "golang.org/x/net/context"
) )
......
...@@ -8,8 +8,6 @@ import ( ...@@ -8,8 +8,6 @@ import (
"sync" "sync"
"time" "time"
"github.com/spf13/viper"
"dfss" "dfss"
cAPI "dfss/dfssc/api" cAPI "dfss/dfssc/api"
"dfss/dfssc/common" "dfss/dfssc/common"
...@@ -18,7 +16,7 @@ import ( ...@@ -18,7 +16,7 @@ import (
pAPI "dfss/dfssp/api" pAPI "dfss/dfssp/api"
"dfss/dfssp/contract" "dfss/dfssp/contract"
"dfss/net" "dfss/net"
"github.com/spf13/viper"
"golang.org/x/net/context" "golang.org/x/net/context"
"google.golang.org/grpc" "google.golang.org/grpc"
) )
......
...@@ -4,7 +4,6 @@ import ( ...@@ -4,7 +4,6 @@ import (
"testing" "testing"
"dfss/dfssp/contract" "dfss/dfssp/contract"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )
......
...@@ -40,6 +40,7 @@ func Load() { ...@@ -40,6 +40,7 @@ func Load() {
// Fill virtual-only fields // Fill virtual-only fields
viper.Set("registered", isFileValid(viper.GetString("file_key"))) viper.Set("registered", isFileValid(viper.GetString("file_key")))
viper.Set("authenticated", isFileValid(viper.GetString("file_cert"))) viper.Set("authenticated", isFileValid(viper.GetString("file_cert")))
viper.Set("local_port", 9005)
return 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