Jelajahi Sumber

Fix: copy networkID string

- Ensure the underlying buffer of the networkID string does not disappear by explicitly copying it onto the Go heap
Miro 7 tahun lalu
induk
melakukan
8dbbf12720
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      ClientLibrary/PsiphonTunnel.go

+ 1 - 1
ClientLibrary/PsiphonTunnel.go

@@ -122,7 +122,7 @@ func Start(configJSON, embeddedServerEntryList, clientPlatform, networkID string
 	// Set network ID
 
 	if networkID != "" {
-		config.NetworkID = networkID
+		config.NetworkID = string([]byte(networkID))
 	}
 
 	// Set client platform