Skip to content

Commit cff50d8

Browse files
committed
feat(app): add public method GetAccessibleOrigins
1 parent 591da33 commit cff50d8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/app/main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ func (app *App) ReOpenLog() []error {
4444
return app.logFileMan.Reopen()
4545
}
4646

47+
func (app *App) GetAccessibleOrigins(includeLoopback bool) [][]string {
48+
return app.vhostSvc.GetAccessibleURLs(includeLoopback)
49+
}
50+
4751
func NewApp(params param.Params, settings *setting.Setting) (*App, []error) {
4852
if len(settings.PidFile) > 0 {
4953
errs := writePidFile(settings.PidFile)

0 commit comments

Comments
 (0)