revel / modules

Officially supported Revel modules

Home Page:http://revel.github.io/modules/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Forbidden when access /@jobs on localhost:[::1]:45668 is not local

yashen opened this issue · comments

go version is go1.8 linux/amd64

commented

That is by design, see http://revel.github.io/modules/jobs.html . If you want to work on a feature to allow remote access (perhaps restricted) this is an area we are looking for enhancements in

commented

Additional thoughts, one thing I have done in the past is to setup a LocalForward in my ssh config file then you can access the jobs page and it will display because it thinks you are local

I am local.
in status.go

	if !strings.HasPrefix(remoteAddress, "127.0.0.1") && !strings.HasPrefix(remoteAddress, "::1") {
		return c.Forbidden("%s is not local", remoteAddress)
	}

If my remoteAddress is ::1:45668,it will pass,but now my my remoteAddress is [::1]:45668,
I think perhaps golang's lib changed somewhere

commented

OK, thanks for the details, will schedule to fix bug