Skip to content

Commit

Permalink
Add cert utils on proxy state
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieuancelin committed Feb 29, 2024
1 parent 289c719 commit 1fa50a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion otoroshi/app/next/proxy/state.scala
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ class NgProxyState(env: Env) {
def addCert(id: String, cert: Cert): Unit = {
certificates.put(id, cert)
}

def removeCert(id: String): Unit = {
certificates.remove(id)
}
def updateRawRoutes(values: Seq[NgRoute]): Unit = {
raw_routes
.addAll(values.map(v => (v.cacheableId, v)))
Expand Down

0 comments on commit 1fa50a6

Please sign in to comment.