Four Js Development Tools Forum

Discussions by product => Genero BDL => Topic started by: Huy H. on January 21, 2019, 07:55:47 pm



Title: Detecting connection type from BDL
Post by: Huy H. on January 21, 2019, 07:55:47 pm
In our current setup, are allowing the GDC to connect to the application either through direct SSH, or via GAS http connection.  We are running into a situation where we would like to determine which connection type was used by the frontend to reach our application.  We've search various documentation, but couldn't find a supported API call to determine the connection type.  If anyone knows of one, please let us know.

As a current work-around (not sure if this is the best approach), but we notice that in the uaproxy log, there are quite a few environment variables that's setup by GAS.  For example: $FGLASXCF, $FGL_VMPROXY_SESSION_ID, $FGL_VMPROXY_CONNECTOR_URI to new a few.  We could detect whether if these environment variables are available to determine if it was a GAS or SSH connection.


Title: Re: Detecting connection type from BDL
Post by: Leo S. on June 28, 2019, 12:01:07 am
For the records,
this has been answered in the EAP 2019 mailing list.
FGL_VMPROXY_SESSION_ID or FGL_WEBSERVER_HTTP_USER_AGENT can be queried with fgl_getenv()
Leo