Procházet zdrojové kódy

ClientLibrary: update network identifier comment

mirokuratczyk před 7 roky
rodič
revize
3ef0fca2c1
1 změnil soubory, kde provedl 7 přidání a 1 odebrání
  1. 7 1
      ClientLibrary/PsiphonTunnel.go

+ 7 - 1
ClientLibrary/PsiphonTunnel.go

@@ -102,8 +102,14 @@ var managedStartResult *C.char
 //   "iOS_11.4_com.example.exampleApp"
 //   "iOS_11.4_com.example.exampleApp"
 //   "Windows"
 //   "Windows"
 //
 //
-// networkID should be not be blank and should follow the format specified by
+// networkID must be a non-empty string and follow the format specified by
 // https://godoc.org/github.com/Psiphon-Labs/psiphon-tunnel-core/psiphon#NetworkIDGetter.
 // https://godoc.org/github.com/Psiphon-Labs/psiphon-tunnel-core/psiphon#NetworkIDGetter.
+//
+// Provided below are links to platform specific code which can be used to generate valid network identifier strings:
+//   Android:
+//     - https://github.com/Psiphon-Labs/psiphon-tunnel-core/blob/3d344194d21b250e0f18ededa4b4459a373b0690/MobileLibrary/Android/PsiphonTunnel/PsiphonTunnel.java#L371
+//   iOS:
+//     - https://github.com/Psiphon-Labs/psiphon-tunnel-core/blob/3d344194d21b250e0f18ededa4b4459a373b0690/MobileLibrary/iOS/PsiphonTunnel/PsiphonTunnel/PsiphonTunnel.m#L1105
 func Start(configJSON, embeddedServerEntryList, clientPlatform, networkID string, timeout int64) *C.char {
 func Start(configJSON, embeddedServerEntryList, clientPlatform, networkID string, timeout int64) *C.char {
 
 
 	// Load provided config
 	// Load provided config