-
Notifications
You must be signed in to change notification settings - Fork 234
Fix local remoting #801
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix local remoting #801
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just a couple nits
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, except for what looks like unused code.
|
||
// hostname is 'ServerRemoteHost' when the user enters a session. | ||
// ex. Enter-PSSession, Enter-PSHostProcess | ||
if (hostname == "ServerRemoteHost") | ||
{ | ||
runspaceId = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This runspaceId variable doesn't seem to be used anywhere, and perhaps it is not needed. Also the default value returned should not be runspace, but a default runspace id.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've deleted that line of code. Thanks @PaulHigin!
Thanks @PaulHigin! |
Co-Authored-By: TylerLeonhardt <[email protected]>
Co-Authored-By: TylerLeonhardt <[email protected]>
Co-Authored-By: TylerLeonhardt <[email protected]>
Co-Authored-By: TylerLeonhardt <[email protected]>
Before, if you did:
or any variation that uses localhost... this would get marked as a "Local" session and psedit would not get registered (other bad things could have been happening too...).
This fix makes all PSRP sessions "Remote" sessions so that psedit registers correctly.
This also allows a user to start ssh server in WSL or a container and use:
to get remote editing & debugging in PSES