Skip to content

pairing with -0 parameter STDIN not working anymore #3868

@comsyspro

Description

@comsyspro

Is there an existing issue for this?

  • I have searched the existing issues

Is your issue described in the documentation?

  • I have read the documentation

Is your issue present in the latest beta/pre-release?

None

Describe the Bug

i changed the code here to have a fixed pin for an automated pairing workflow - like std::string pin = "1234";

std::string pin;

In earlier releases like 0.23.1 this pairing process worked fine but in the latest code it seems something has changed.

i also found this code and here you need a pin and a name and in earlier releases you only had a pin there and no name
https://github.com/LizardByte/Sunshine/blob/7b873e9ea42d542312576818c6fb1a03e04ae156/src/confighttp.cpp#L1022C7-L1023C59

so what should be changed here so that stdin will work again? (moonlight only passes a pin and can't pass a name)

Expected Behavior

No response

Additional Context

No response

Host Operating System

Windows

Operating System Version

Win 11

Architecture

amd64/x86_64

Sunshine commit or version

master branch

Package

Windows - portable (not recommended)

GPU Type

AMD

GPU Model

RTX 3070

GPU Driver/Mesa Version

latest

Capture Method

None

Config

Apps

Relevant log output

nothing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions