注释debug代码
This commit is contained in:
@ -83,8 +83,8 @@ func (g *Gateway) OpenSshTunnel(id, ip string, port int) (exposedIP string, expo
|
||||
return "", 0, err
|
||||
}
|
||||
|
||||
// TODO debug
|
||||
hostname = "0.0.0.0"
|
||||
// debug
|
||||
//hostname = "0.0.0.0"
|
||||
|
||||
localAddr := fmt.Sprintf("%s:%d", hostname, localPort)
|
||||
listener, err := net.Listen("tcp", localAddr)
|
||||
@ -94,9 +94,9 @@ func (g *Gateway) OpenSshTunnel(id, ip string, port int) (exposedIP string, expo
|
||||
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
tunnel := &Tunnel{
|
||||
ID: id,
|
||||
//LocalHost: hostname,
|
||||
LocalHost: "docker.for.mac.host.internal",
|
||||
ID: id,
|
||||
LocalHost: hostname,
|
||||
//LocalHost: "docker.for.mac.host.internal",
|
||||
LocalPort: localPort,
|
||||
Gateway: g,
|
||||
RemoteHost: ip,
|
||||
|
@ -80,7 +80,7 @@ func (service storageService) InitStorages() error {
|
||||
|
||||
func (service storageService) CreateStorageByUser(c context.Context, user *model.User) error {
|
||||
drivePath := service.GetBaseDrivePath()
|
||||
var limitSize int64 = -1
|
||||
var limitSize int64
|
||||
property, err := repository.PropertyRepository.FindByName(c, "user-default-storage-size")
|
||||
if err != nil {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user