mirror of
https://github.com/openziti/ziti.git
synced 2026-10-12 07:18:36 +00:00
don't ouptut enrolled json escaped to avoid possible parsing issues (ahem) in c
This commit is contained in:
@@ -134,7 +134,10 @@ func processEnrollment() error {
|
||||
return fmt.Errorf("failed to open file '%s': %s", outpath, err.Error())
|
||||
}
|
||||
|
||||
encErr := json.NewEncoder(output).Encode(&conf)
|
||||
enc := json.NewEncoder(output)
|
||||
enc.SetEscapeHTML(false)
|
||||
encErr := enc.Encode(&conf)
|
||||
|
||||
if encErr == nil {
|
||||
fmt.Printf("enrolled successfully. identity file written to: %s", outpath)
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user