|
|
@ -54,6 +54,7 @@ func NewRemoteClientCreator(addr, transport string, mustConnect bool) ClientCrea |
|
|
|
|
|
|
|
func (r *remoteClientCreator) NewTMSPClient() (tmspcli.Client, error) { |
|
|
|
// Run forever in a loop
|
|
|
|
fmt.Println("ADDR", r.addr, r.transport) |
|
|
|
remoteApp, err := tmspcli.NewClient(r.addr, r.transport, r.mustConnect) |
|
|
|
if err != nil { |
|
|
|
return nil, fmt.Errorf("Failed to connect to proxy: %v", err) |
|
|
@ -71,7 +72,7 @@ func DefaultClientCreator(config cfg.Config) ClientCreator { |
|
|
|
switch addr { |
|
|
|
case "dummy": |
|
|
|
return NewLocalClientCreator(dummy.NewDummyApplication()) |
|
|
|
case "nil": |
|
|
|
case "nilapp": |
|
|
|
return NewLocalClientCreator(nilapp.NewNilApplication()) |
|
|
|
default: |
|
|
|
mustConnect := true |
|
|
|