Browse Source

Actually run Obfuscated SSH server

Rod Hynes 10 years ago
parent
commit
1e5aa545ce
1 changed files with 10 additions and 0 deletions
  1. 10 0
      psiphon/server/services.go

+ 10 - 0
psiphon/server/services.go

@@ -63,6 +63,16 @@ func RunServices(encodedConfig []byte) error {
 		}
 		}
 	}()
 	}()
 
 
+	waitGroup.Add(1)
+	go func() {
+		defer waitGroup.Done()
+		err := RunObfuscatedSSHServer(config, shutdownBroadcast)
+		select {
+		case errors <- err:
+		default:
+		}
+	}()
+
 	// An OS signal triggers an orderly shutdown
 	// An OS signal triggers an orderly shutdown
 	systemStopSignal := make(chan os.Signal, 1)
 	systemStopSignal := make(chan os.Signal, 1)
 	signal.Notify(systemStopSignal, os.Interrupt, os.Kill)
 	signal.Notify(systemStopSignal, os.Interrupt, os.Kill)