MITMHostConflicts returns a snapshot of host→[]model-name pairs that are claimed by 2+ model configs. Empty when the 1-to-1 invariant holds. Non-empty disables the MITM listener — read by the admin status endpoint to explain why.
()
| 386 | // holds. Non-empty disables the MITM listener — read by the admin |
| 387 | // status endpoint to explain why. |
| 388 | func (a *Application) MITMHostConflicts() map[string][]string { |
| 389 | p := a.mitmHostConflicts.Load() |
| 390 | if p == nil { |
| 391 | return nil |
| 392 | } |
| 393 | return *p |
| 394 | } |
| 395 | |
| 396 | // MITMHostOwners returns the host→model-name map, useful for the |
| 397 | // admin status endpoint. The lookup is recomputed on each call to |