mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-20 20:07:52 +02:00
Support a host: atom as an alias for the hostname: atom
This commit is contained in:
parent
a8d4e17b66
commit
fe93be79f4
@ -189,6 +189,8 @@ func parseAtomizedToken(token string) (string, interface{}, error) {
|
|||||||
switch field {
|
switch field {
|
||||||
case "user":
|
case "user":
|
||||||
return "(local_username = ?)", val, nil
|
return "(local_username = ?)", val, nil
|
||||||
|
case "host":
|
||||||
|
fallthrough
|
||||||
case "hostname":
|
case "hostname":
|
||||||
return "(instr(hostname, ?) > 0)", val, nil
|
return "(instr(hostname, ?) > 0)", val, nil
|
||||||
case "cwd":
|
case "cwd":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user