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
Varnish v4.1.10+ ban request not working Error Unable to detect varnish version #1490
Comments
i wouldn't change it that way. if limiting the numbers i would go for something like this: but my prefered regex would just be just not limiting the numbers: |
Are you sure this works @ngongoll? Later, after the magento-turpentine/app/code/community/Nexcessnet/Turpentine/Model/Varnish/Admin/Socket.php Lines 373 to 374 in e948e9f
Update: It may work, but Besides of that, would you mind creating a pull request? |
created a pull request #1491 |
(comment out of the off:) Could please someone do a follow up PullRequest refactoring this to not use a regex anymore? PHP has perfectly fine functions to compare versions, which are easier to read and change then a regex. |
Any updates on this? |
at the cost of repeating myself: any updates on this? |
This should be fixed in devel by #1491, care to check? |
Looks good to me. |
all ban request will end with error Unable to detect varnish version when subversion of varnish 4.1 has 2 digits.
you can fix it by change the line 91 in
app/code/community/Nexcessnet/Turpentine/Model/Varnish/Admin/Socket.php
to
const REGEXP_VARNISH_VERSION = '/^varnish-(?P\d).(?P\d).(?P\d{1,2}) revision (?P[0-9a-f]+)$/';
The text was updated successfully, but these errors were encountered: