openBootstrapEnabled reports whether open-bootstrap is active for this server: bypass flag is set AND we're not in cloud mode. Cloud mode always wins over the bypass flag; the field on its own is meaningless without that check.
()
| 197 | // always wins over the bypass flag; the field on its own is meaningless |
| 198 | // without that check. |
| 199 | func (s *Server) openBootstrapEnabled() bool { |
| 200 | return s.bypassSetupToken && !s.cloudMode |
| 201 | } |
| 202 | |
| 203 | // consumeBootstrapToken clears the in-memory token and deletes the on-disk |
| 204 | // file. Called after the first admin is successfully created. |
no outgoing calls