mirror of
https://github.com/xaionaro-go/streamctl.git
synced 2025-10-23 15:33:20 +08:00
Fix the selection of the local endpoint for stream forwarding
This commit is contained in:
@@ -61,13 +61,16 @@ func (c *Client) NewInputFromURL(
|
||||
url string,
|
||||
authKey string,
|
||||
config InputConfig,
|
||||
) (InputID, error) {
|
||||
) (_ InputID, _err error) {
|
||||
client, conn, err := c.grpcClient()
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
defer conn.Close()
|
||||
|
||||
logger.Debugf(ctx, "NewInputFromURL(ctx, '%s', authKey, %#+v)", url, authKey)
|
||||
defer func() { logger.Debugf(ctx, "/NewInputFromURL(ctx, '%s', authKey, %#+v): %v", url, authKey, _err) }()
|
||||
|
||||
resp, err := client.NewInput(ctx, &recoder_grpc.NewInputRequest{
|
||||
Path: &recoder_grpc.ResourcePath{
|
||||
ResourcePath: &recoder_grpc.ResourcePath_Url{
|
||||
|
Reference in New Issue
Block a user