File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -172,6 +172,17 @@ func propertiesHandler(w http.ResponseWriter, r *http.Request) {
172172 response ["ipfs_cluster_peer_id" ] = clusterInfo .ClusterPeerID
173173 }
174174
175+ // Include authorizer from config.yaml if not already in box_props.json.
176+ // The PC installer's mDNS advertiser reads this to broadcast pairing state.
177+ if response ["authorizer" ] == nil || response ["authorizer" ] == "" {
178+ if cfgData , err := os .ReadFile (config .FULA_CONFIG_PATH ); err == nil {
179+ var fulaConfig Config
180+ if err := yaml .Unmarshal (cfgData , & fulaConfig ); err == nil && fulaConfig .Authorizer != "" {
181+ response ["authorizer" ] = fulaConfig .Authorizer
182+ }
183+ }
184+ }
185+
175186 w .Header ().Set ("Content-Type" , "application/json" )
176187 w .WriteHeader (http .StatusOK )
177188 jsonErr := json .NewEncoder (w ).Encode (response )
You can’t perform that action at this time.
0 commit comments