-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
refer_publish doesn't seem to be working #735
Comments
The source code is SRS3. You need to checkout the 2.0release branch. Can you please tell me how to use Git with Baidu? I will take another look at the SRS2 issue.
|
SRS2 is working.
Configuration:
I am using FFMPEG for streaming.
The refer for FMLE streaming is also empty, just like FFMPEG. You can give it a try. BTW: There is an issue with the configuration parsing of SRS3, I will fix it.
|
This 'refer' restriction is limited to PageUrl, not IP. If you want to restrict IP, you need to use security configuration.
|
In the log, I saw that the refer was empty. In version 3.0, it can indeed be restricted sometimes, but sometimes it doesn't work. I will verify it carefully again. I couldn't find the configuration for security in the wiki.
|
I found the configuration in the conf directory, the Security configuration, and it is indeed useful.
|
Hi Winlin,
I am using the restriction of "refer_publish" for testing in a local area network, but it seems that it is not working.
The configuration is as follows: IP is 10.10.10.100, and there is a machine T1 for internal streaming, using FMLE for streaming.
In different versions of SRS, the phenomenon is slightly different:
In the stable version SRS-CentOS6-x86_64-2.0.223.zip, when I change the IP address of T1 to 10.10.10.100 or 10.10.10.99, reconnect and start streaming, everything works fine without restricting the client.
If using source code compilation, git clone https://github.com/ossrs/srs,
A. Changing the IP address of T1 to 10.10.10.100 allows streaming.
B. Disconnecting the stream and changing the IP address of T1 to 10.10.10.99 results in failure to connect (displaying connection failed).
C. Changing the IP address of T1 back to 10.10.10.100 also results in failure to stream, displaying connection failed.
What went wrong?
Thank you.
TRANS_BY_GPT3
The text was updated successfully, but these errors were encountered: