Skip to content

Commit

Permalink
Fix conditional logic for license re-check
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Jan 9, 2025
1 parent 5110b55 commit b3d71c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#### Version 7.30.4
* Fix conditional logic for license re-check

#### Version 7.30.3
* Fix missing button text when restarting a script’s service (Node.js, etc.)
* Fix advertised installable web apps always show the version as “latest”
Expand Down
2 changes: 1 addition & 1 deletion module.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ desc=Virtualmin Virtual Servers
category=servers
depends=net useradmin quota webmin mount init acl cron mailboxes phpini procmail 2.014
os_support=*-linux macos freebsd openbsd solaris
version=7.30.3
version=7.30.4
readonly=1
[email protected]
2 changes: 1 addition & 1 deletion virtual-server-lib-funcs.pl
Original file line number Diff line number Diff line change
Expand Up @@ -11980,7 +11980,7 @@ sub update_licence_from_site
{
my ($licence) = @_;
my $lastpost = $config{'lastpost'};
return if (defined($licence->{'last'}) &&
return if (defined($licence->{'last'}) && $licence->{'status'} == 0 &&
$lastpost && time() - $lastpost < 60*60*60);
my ($status, $expiry, $err, $doms, $servers, $max_servers, $autorenew,
$state, $subscription) = &check_licence_site();
Expand Down

0 comments on commit b3d71c3

Please sign in to comment.