Browse Source

Indent generated JSON config for readability

Rod Hynes 10 years ago
parent
commit
f71575c048
1 changed files with 1 additions and 1 deletions
  1. 1 1
      psiphon/server/config.go

+ 1 - 1
psiphon/server/config.go

@@ -192,7 +192,7 @@ func GenerateConfig(params *GenerateConfigParams) ([]byte, []byte, error) {
 		ObfuscatedSSHServerPort: obfuscatedSSHServerPort,
 	}
 
-	encodedConfig, err := json.Marshal(config)
+	encodedConfig, err := json.MarshalIndent(config, "\n", "    ")
 	if err != nil {
 		return nil, nil, psiphon.ContextError(err)
 	}