Added ServerSession to HandleAuthorRequest and HandleAcctRequest#4
Added ServerSession to HandleAuthorRequest and HandleAcctRequest#4wladwm wants to merge 1 commit into
Conversation
…ause some devices does not set correctly RemoteAddr field
|
Sorry for not looking at this earlier. I will probably get to it over Christmas/New year. Im not sure yet I wan't to give the Acct and Author methods access to the ServerSession directly which has Authentication methods. |
|
funny i was about to code this change. Would be great to have it merged. |
-> this patch does not work at such if using the library (structures are not exported). |
|
It works for me. func (h *CdnHandler) HandleAuthenStart(ctx context.Context, a *tacplus.AuthenStart, s *tacplus.ServerSession) *tacplus.AuthenReply { |
In Author/Acct packet we should not trust RemoteAddr field, so we need access to ServerSession to proper authorize and account events.